-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is inspired by a mystifying linker failure when using `pkg-config` to generate the linker args: `pkg-config` produces output that ends in a space, thus resulting in an empty linker argument. Also added some updates to the concerning error messages that helped spotting this bug.
- Loading branch information
Showing
4 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
-include ../tools.mk | ||
# Notice the space in the end, this emulates the output of pkg-config | ||
RUSTC_FLAGS = --link-args "-lc " | ||
|
||
all: | ||
$(RUSTC) $(RUSTC_FLAGS) empty.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fn main() { } |
32688f8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at https://github.com/Blei/rust/commit/32688f8f7448b131434bbd340e7163ecd6d0e8ac
32688f8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging Blei/rust/fix-linker-args = 32688f8 into auto
32688f8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blei/rust/fix-linker-args = 32688f8 merged ok, testing candidate = 9ac4878
32688f8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2734
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-c/builds/579
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/579
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2738
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1844
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1843
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2750
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1842
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1843
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2752
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1842
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1842
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/1918
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2739
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/1843
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1845
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/2514
32688f8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 9ac4878