Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for cross-compiling to 32 bit #50

Merged
merged 2 commits into from
Oct 24, 2018

Conversation

bennofs
Copy link
Contributor

@bennofs bennofs commented Oct 24, 2018

After these changes, all of the following now work correctly and produce a different target triple (in particular, compiling 32 bit on 64 bit host will put outputs into i386-pc-linux-gnu):

$ make # compiles normally
$ make -i ARCH=i386 # compiles for 32 bit x86, uses -m32 if host is x86_64
$ make -i CC=aarch64-linux-gnu-gcc # compiles for aarch64
$ make -i MACHINE=aarch64-linux-gnu # same as above

@zardus zardus merged commit 806c0da into zardus:master Oct 24, 2018
@zardus
Copy link
Owner

zardus commented Oct 24, 2018

Sweet, thanks!

@zardus zardus mentioned this pull request Oct 24, 2018
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