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

rustbuild: Tweak how we cross-compile LLVM #43527

Merged
merged 1 commit into from
Jul 29, 2017

Conversation

alexcrichton
Copy link
Member

In preparation for upgrading to LLVM 5.0 it looks like we need to tweak how we
cross compile LLVM slightly. It's using CMAKE_SYSTEM_NAME to infer whether to
build libFuzzer which only works on some platforms, and then once we configure
that it needs to apparently reach into the host build area to try to compile
llvm-config as well. Once these are both configured, though, it looks like we
can successfully cross-compile LLVM.

In preparation for upgrading to LLVM 5.0 it looks like we need to tweak how we
cross compile LLVM slightly. It's using `CMAKE_SYSTEM_NAME` to infer whether to
build libFuzzer which only works on some platforms, and then once we configure
that it needs to apparently reach into the host build area to try to compile
`llvm-config` as well. Once these are both configured, though, it looks like we
can successfully cross-compile LLVM.
@rust-highfive
Copy link
Collaborator

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member Author

r? @Mark-Simulacrum

cc @TimNN

@Mark-Simulacrum
Copy link
Member

Do we need any checks for LLVM 5.0 around the new variables? Presumably no, since they seem like they'd work either way, but it'd be good to check (CI will take care of that though).

Otherwise r=me.

@alexcrichton
Copy link
Member Author

Yeah I'm hoping that this is ok to land with 4.0 we've got now, but failing that CI will complain at me and we can just check this in with the final 5.0 PR. It's just kinda cool if the 5.0 PR is literally just updating the submodule :)

@bors: r=Mark-Simulacrum

@bors
Copy link
Contributor

bors commented Jul 28, 2017

📌 Commit 069a1b3 has been approved by Mark-Simulacrum

@TimNN TimNN mentioned this pull request Jul 28, 2017
43 tasks
@bors
Copy link
Contributor

bors commented Jul 29, 2017

⌛ Testing commit 069a1b3 with merge 8d0ad26...

bors added a commit that referenced this pull request Jul 29, 2017
…lacrum

rustbuild: Tweak how we cross-compile LLVM

In preparation for upgrading to LLVM 5.0 it looks like we need to tweak how we
cross compile LLVM slightly. It's using `CMAKE_SYSTEM_NAME` to infer whether to
build libFuzzer which only works on some platforms, and then once we configure
that it needs to apparently reach into the host build area to try to compile
`llvm-config` as well. Once these are both configured, though, it looks like we
can successfully cross-compile LLVM.
@bors
Copy link
Contributor

bors commented Jul 29, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: Mark-Simulacrum
Pushing 8d0ad26 to master...

@bors bors merged commit 069a1b3 into rust-lang:master Jul 29, 2017
@alexcrichton alexcrichton deleted the different-llvm-cross branch August 22, 2017 19:43
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.

5 participants