-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Do not set CC, CFLAGS, CXX, CXXFLAGS, AR, RANLIB in bootstrap, it breaks cross compilation #57953
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
It looks like this was first introduced in #45191 (cc @petrochenkov), and it looks like there's a number of other bare variables that need to get removed as well, it's not just |
That PR moved Things could change now with libbacktrace and jemalloc being built out of tree, perhaps bare If CI passes with |
Okay, I'll update PR within 15-30 minutes. |
I cannot test it until tomorrow or later today but I think it's ready for the next round of review. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
Using CC, CFLAGS, CXX, CXXFLAGS, AR and RANLIB breaks cross compilation because host is built first and has correct values. The same values are incorrect for the target however.
@bors: r+ |
📌 Commit 99d00c8 has been approved by |
Do not set CC, CFLAGS, CXX, CXXFLAGS, AR, RANLIB in bootstrap, it breaks cross compilation Fixes #57812 I tested it in AArch64 Ubuntu container with several days old tree to have all the tools buildable. I did **not** test native builds (amd64 -> amd64), leaving it to CI. r? @alexcrichton
☀️ Test successful - checks-travis, status-appveyor |
Fixes #57812
I tested it in AArch64 Ubuntu container with several days old tree to have all the tools buildable.
I did not test native builds (amd64 -> amd64), leaving it to CI.
r? @alexcrichton