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

mk: Fix cross-host builds #32576

Merged
merged 1 commit into from
Mar 30, 2016
Merged

Conversation

alexcrichton
Copy link
Member

The change in b20e748 had the unintended consequence of breaking cross-host
builds as we apparently relied on the incorrect definition of this variable in
the makefiles. That change, however, was required to get tests passing so we
couldn't just revert it.

This commit fixes the underlying bug by leaving the "more correct" definition of
LD_LIBRARY_PATH_ENV_TARGETDIR (also fixing it with a hardcoded reference to
CFG_BUILD) and updating the RPATH_VAR definition below. Turned out we
already had special-casing logic for passing --cfg stage1 during the
well-we-print-this-as-stage0 build of a cross-host. That logic was just updated
to pull from a different variable as opposed to relying on the definition of
that variable to accommodate this.

Closes #32568

The change in b20e748 had the unintended consequence of breaking cross-host
builds as we apparently relied on the incorrect definition of this variable in
the makefiles. That change, however, was required to get tests passing so we
couldn't just revert it.

This commit fixes the underlying bug by leaving the "more correct" definition of
`LD_LIBRARY_PATH_ENV_TARGETDIR` (also fixing it with a hardcoded reference to
`CFG_BUILD`) and updating the `RPATH_VAR` definition below. Turned out we
already had special-casing logic for passing `--cfg stage1` during the
well-we-print-this-as-stage0 build of a cross-host. That logic was just updated
to pull from a different variable as opposed to relying on the definition of
that variable to accommodate this.

Closes rust-lang#32568
@alexcrichton
Copy link
Member Author

r? @brson

@durka
Copy link
Contributor

durka commented Mar 29, 2016

Oh neat, so we might be able to keep the fixed hashing? :) If you still need me to prepare a patch reverting #32252 let me know.

@brson
Copy link
Contributor

brson commented Mar 29, 2016

@bors r+ p=1

@bors
Copy link
Contributor

bors commented Mar 29, 2016

📌 Commit 694d883 has been approved by brson

@bors
Copy link
Contributor

bors commented Mar 29, 2016

⌛ Testing commit 694d883 with merge 8472179...

@bors
Copy link
Contributor

bors commented Mar 29, 2016

💔 Test failed - auto-win-gnu-32-opt-rustbuild

@alexcrichton
Copy link
Member Author

@bors: retry force

On Tue, Mar 29, 2016 at 2:43 PM, bors notifications@github.com wrote:

[image: 💔] Test failed - auto-win-gnu-32-opt-rustbuild
http://buildbot.rust-lang.org/builders/auto-win-gnu-32-opt-rustbuild/builds/526


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#32576 (comment)

@bors
Copy link
Contributor

bors commented Mar 30, 2016

⌛ Testing commit 694d883 with merge b678600...

bors added a commit that referenced this pull request Mar 30, 2016
mk: Fix cross-host builds

The change in b20e748 had the unintended consequence of breaking cross-host
builds as we apparently relied on the incorrect definition of this variable in
the makefiles. That change, however, was required to get tests passing so we
couldn't just revert it.

This commit fixes the underlying bug by leaving the "more correct" definition of
`LD_LIBRARY_PATH_ENV_TARGETDIR` (also fixing it with a hardcoded reference to
`CFG_BUILD`) and updating the `RPATH_VAR` definition below. Turned out we
already had special-casing logic for passing `--cfg stage1` during the
well-we-print-this-as-stage0 build of a cross-host. That logic was just updated
to pull from a different variable as opposed to relying on the definition of
that variable to accommodate this.

Closes #32568
@bors bors merged commit 694d883 into rust-lang:master Mar 30, 2016
@alexcrichton alexcrichton deleted the metadata-for-our-crates branch March 30, 2016 04:26
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.

Cross-host builds are broken (and nightlies)
4 participants