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: allow overriding list of LLVM targets to build #38657

Merged
merged 1 commit into from
Dec 30, 2016

Conversation

xen0n
Copy link
Contributor

@xen0n xen0n commented Dec 28, 2016

Here we go!

r? @alexcrichton
cc @Yamakaky

A new option is introduced under the `[llvm]` section of `config.toml`,
`targets`, for overriding the list of LLVM targets to build support for.
The option is passed through to LLVM configure script. Also notes are
added about the implications of (ab)using the option; since the default
is not changed, and users of the option are expected to know what
they're doing anyway (as every porter should), the impact should be
minimal.

Fixes rust-lang#38200.
@@ -75,13 +75,18 @@ pub fn llvm(build: &Build, target: &str) {
(true, true) => "RelWithDebInfo",
};

// NOTE: remember to also update `config.toml.example` when changing the defaults!
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@Yamakaky
Copy link
Contributor

Cool!

@xen0n
Copy link
Contributor Author

xen0n commented Dec 29, 2016

Wait there's the problem of stale cache when the target list has been changed. Most likely we'd like to revamp the current stamping logic to include the targets also, maybe ditching the date part altogether. I'll come up with something like that later in the day.

@alexcrichton
Copy link
Member

@bors: r+

Looks good to me! I don't think we have to worry too much about stale issues here, presumably you know what you're doing if you're tweaking this configuration.

@bors
Copy link
Contributor

bors commented Dec 29, 2016

📌 Commit 0f8e931 has been approved by alexcrichton

@Yamakaky
Copy link
Contributor

Auto-rebuild would be cool though.

@xen0n
Copy link
Contributor Author

xen0n commented Dec 29, 2016

@Yamakaky I've already implemented that in a local branch. Waiting for this PR to land, then I could publish it for review as it's directly built upon this PR.

bors added a commit that referenced this pull request Dec 30, 2016
@bors bors merged commit 0f8e931 into rust-lang:master Dec 30, 2016
@xen0n xen0n deleted the rustbuild-llvm-targets branch December 30, 2016 09:58
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