tshort / StaticCompiler.jl

Compiles Julia code to a standalone library (experimental)
Other
488 stars 31 forks source link

Refactor code to make it more amenable to cross compilation #150

Closed gbaraldi closed 4 months ago

gbaraldi commented 7 months ago

Also cleanup some of it.

This doesn't allow for actual cross-compilation because we need the compilers, and implementing that is basically implementing BinaryBuilder, but maybe we should add an option to pass cc.

tshort commented 7 months ago

Plus one from me. Could you add an example in the docs or maybe even a test of a cross compilation? Cross compiling to WebAssembly should work because that's built into the compiler.

Do any of the compilers in Yggdrasil provide cross compilation?

gbaraldi commented 7 months ago

Yggy has tons of cross compilers, but they only run in linux.

brenhinkeller commented 7 months ago

Cool! We should make sure we're being consistent about cflags/c_flags and etc. but otherwise LGTM

tshort commented 5 months ago

Sorry. No one pulled the trigger here. Anything else we need to do here?