-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate codegen-related compiler flags
Move them all behind a new -C switch. This migrates some -Z flags and some top-level flags behind this -C codegen option. The -C flag takes values of the form "-C name=value" where the "=value" is optional for some flags. Flags affected: * --llvm-args => -C llvm-args * --passes => -C passes * --ar => -C ar * --linker => -C linker * --link-args => -C link-args * --target-cpu => -C target-cpu * --target-feature => -C target-fature * --android-cross-path => -C android-cross-path * --save-temps => -C save-temps * --no-rpath => -C no-rpath * -Z no-prepopulate => -C no-prepopulate-passes * -Z no-vectorize-loops => -C no-vectorize-loops * -Z no-vectorize-slp => -C no-vectorize-slp * -Z soft-float => -C soft-float * -Z gen-crate-map => -C gen-crate-map * -Z prefer-dynamic => -C prefer-dynamic * -Z no-integrated-as => -C no-integrated-as As a bonus, this also promotes the -Z extra-debug-info flag to a first class -g or --debuginfo flag. * -Z debug-info => removed * -Z extra-debug-info => -g or --debuginfo Closes #9770 Closes #12000
- Loading branch information
1 parent
2780d9d
commit 071ee96
Showing
112 changed files
with
393 additions
and
302 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
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
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
Oops, something went wrong.
071ee96
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 cmr
at alexcrichton@071ee96
071ee96
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 alexcrichton/rust/codegen-opts = 071ee96 into auto
071ee96
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.
alexcrichton/rust/codegen-opts = 071ee96 merged ok, testing candidate = d440a56
071ee96
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/4130
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-c/builds/1972
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/1974
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/4129
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/3229
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/3235
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/4144
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/3232
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/3238
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/4146
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/3232
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/3237
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/3306
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1084
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/4137
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/3238
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/3243
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/3906
071ee96
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 = d440a56