Skip to content

[cmake] Recover original CMAKE_C/CXX_COMPILER after changing them. #22428

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

Merged

Conversation

drodriguez
Copy link
Contributor

Seems that the change in the two variables was spilling into the other
target of the file, but returning it back to the original values seems
to avoid that issue.

This should unbreak the Android CI build. In it, the Linux static
library was changing to the host compiler, and that compiler was being
used for the Android runtime library, which would have never compile
that way (since the host compiler in CI is an old-ish Clang without the
necessary argument).

/cc @compnerd: It is way more of a hack than what you were proposing, but it works.

Seems that the change in the two variables was spilling into the other
target of the file, but returning it back to the original values seems
to avoid that issue.

This should unbreak the Android CI build. In it, the Linux static
library was changing to the host compiler, and that compiler was being
used for the Android runtime library, which would have never compile
that way (since the host compiler in CI is an old-ish Clang without the
necessary argument).
@compnerd
Copy link
Member

compnerd commented Feb 7, 2019

@drodriguez absolutely disgusting! Yes, but, unfortunately, until we split the builds, this is the best we can do :-(.

@compnerd
Copy link
Member

compnerd commented Feb 7, 2019

CC: @gottesmm @Rostepher

@compnerd
Copy link
Member

compnerd commented Feb 7, 2019

@swift-ci please test

@compnerd
Copy link
Member

compnerd commented Feb 8, 2019

This probably is a good thing to test on Windows as well, but, I guess that we can do that post-commit as well. At the very least, the nightly build will test this.

@compnerd compnerd merged commit 24dab81 into swiftlang:master Feb 8, 2019
@drodriguez drodriguez deleted the fix-android-host-compiler-usage branch July 16, 2019 23:32
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