Skip to content

Kremlin cross-compiles#76

Open
wintersteiger wants to merge 1 commit into
FStarLang:masterfrom
wintersteiger:cross-kremlin
Open

Kremlin cross-compiles#76
wintersteiger wants to merge 1 commit into
FStarLang:masterfrom
wintersteiger:cross-kremlin

Conversation

@wintersteiger
Copy link
Copy Markdown

Not intended to be merged as is, just a demo to show that it doesn't take all that much. I just ran CROSS=yes make and, on a proper Ubuntu machine (no WSL) it gets me very swiftly to

...:~/kremlin$ file _build/src/Kremlin.native 
_build/src/Kremlin.native: PE32+ executable (console) x86-64, for MS Windows

Those ppx options are a bit of a mess, I'm sure there's a nicer way to get those options through (e.g. in _tags, but I don't know how to get $(OCAMLLIB) into _tags).

@msprotz
Copy link
Copy Markdown
Contributor

msprotz commented Jan 30, 2018

I thought ppx_deriving was supposed to be able to deal with these cases. Perhaps worth pinging the ppx_deriving folks to see if they're missing support for cross-compilation? In any case, good news!

@wintersteiger
Copy link
Copy Markdown
Author

That would be nice if they could support cross-compilation out of the box! I must admit, I don't fully understand how it's supposed to work and I may have set up the ppx_deriving package(s) the wrong way. If those object files are not needed at link time, the *-windows package could just be a link to the build system's (non-windows) packages. I think that's pretty much the effect of those options I set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants