Skip to content

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

Merged
brenhinkeller merged 8 commits into
tshort:masterfrom
gbaraldi:gb/refactor-code
Mar 4, 2024
Merged

Refactor code to make it more amenable to cross compilation#150
brenhinkeller merged 8 commits into
tshort:masterfrom
gbaraldi:gb/refactor-code

Conversation

@gbaraldi

Copy link
Copy Markdown
Contributor

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

tshort commented Nov 28, 2023

Copy link
Copy Markdown
Owner

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

Copy link
Copy Markdown
Contributor Author

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

@brenhinkeller

Copy link
Copy Markdown
Collaborator

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

@MasonProtter MasonProtter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Would you mind bumping the major version and then I think this is ready to go. Fixes for nightly can be done later once the interfaces and such in nightly stabilize a bit.

@tshort

tshort commented Feb 1, 2024

Copy link
Copy Markdown
Owner

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

@brenhinkeller brenhinkeller merged commit 1e6116b into tshort:master Mar 4, 2024
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.

4 participants