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

Update rustbuild commentary #189

Merged
merged 1 commit into from
Sep 14, 2017
Merged

Update rustbuild commentary #189

merged 1 commit into from
Sep 14, 2017

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Sep 12, 2017

r? @nikomatsakis

This is the reason that rust-lang/rust#44509 doesn't work - the rustbuild feature is actually used, it was just incorrectly documented here and I missed it.

build.rs Outdated
// need, so include a few more that aren't typically needed by
// LLVM/Rust.
sources.extend(&[
"ffsdi2.c",
Copy link
Member

Choose a reason for hiding this comment

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

How come this was moved up?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could leave it where it is, but that invites questions (why is it separate from the rest of the files?).

The comment here suggests an answer, but doesn't make sense given that the file's inclusion is unconditional (the condition was removed in 91eaa85, but I don't know why).

So since the inclusion is unconditional, I figured I'd just move it into the main slice.

Copy link
Member

Choose a reason for hiding this comment

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

This is currently in a dedicated section because of the comment. This file is not needed to compile Rust but it's needed to compile Rust's dependencies, namely jemalloc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, so the conditional bit should be restored?

build.rs Outdated
@@ -4003,16 +4003,15 @@ mod c {

/// Compile intrinsics from the compiler-rt C source code
pub fn compile(llvm_target: &[&str]) {
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
let target_env = env::var("CARGO_CFG_TARGET_ENV").unwrap();
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap();
Copy link
Member

Choose a reason for hiding this comment

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

These all need to stay as environment variables due to cross compilation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it, thanks

Also use `cfg!(feature = "rustbuild")` instead of the environment
variable to ease grep-ability.
@tamird
Copy link
Contributor Author

tamird commented Sep 13, 2017

@alexcrichton I think this ready for another look - mipsel-unknown-linux-gnu failed, but the failure looks spurious/unrelated.

@tamird
Copy link
Contributor Author

tamird commented Sep 13, 2017

@alexcrichton I think #188 was maybe incorrect; should we restore that feature and add tests that exercise it?

@alexcrichton
Copy link
Member

Sure!

@tamird
Copy link
Contributor Author

tamird commented Sep 13, 2017

Hm, it's not exactly clear to me how to meaningfully test that outside of "does rustc still compile", so I'm going to leave it as is. Is this good to go?

@alexcrichton
Copy link
Member

@bors: r+

Looks good!

@bors
Copy link
Contributor

bors commented Sep 13, 2017

📌 Commit a32e76e has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Sep 13, 2017

⌛ Testing commit a32e76e with merge 9addd11...

bors added a commit that referenced this pull request Sep 13, 2017
Update rustbuild commentary

r? @nikomatsakis

This is the reason that rust-lang/rust#44509 doesn't work - the `rustbuild` feature _is_ actually used, it was just incorrectly documented here and I missed it.
@bors
Copy link
Contributor

bors commented Sep 13, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member

alexcrichton commented Sep 13, 2017 via email

@tamird
Copy link
Contributor Author

tamird commented Sep 13, 2017

@alexcrichton any idea what that failure is?

---- floattidf stdout ----
	thread 'floattidf' panicked at 'assertion failed: `(left == right)`
  left: `((-28147497671065500,), 14331630114050693152, 14331630114050693120, true)`,
 right: `((-28147497671065500,), 14331630114050693152, 14331630114050693120, false)`', /target/mips-unknown-linux-gnu/debug/build/compiler_builtins-04fe505231ccc40a/out/floattidf.rs:10055:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.

I can't even make sense of the output.

@alexcrichton
Copy link
Member

spurious failure

@bors
Copy link
Contributor

bors commented Sep 14, 2017

⌛ Testing commit a32e76e with merge ef49515...

bors added a commit that referenced this pull request Sep 14, 2017
Update rustbuild commentary

r? @nikomatsakis

This is the reason that rust-lang/rust#44509 doesn't work - the `rustbuild` feature _is_ actually used, it was just incorrectly documented here and I missed it.
@bors
Copy link
Contributor

bors commented Sep 14, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing ef49515 to master...

@bors bors merged commit a32e76e into rust-lang:master Sep 14, 2017
@tamird tamird deleted the update-comment-rustbuild branch September 14, 2017 02: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.

3 participants