diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-03-12 13:35:46 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2018-03-13 08:28:27 -0700 |
| commit | 1999a3fb4154961329ecfff7d70a6303471b996a (patch) | |
| tree | 607616fde6550d6bbafba714cf77b4d11ba3d406 /src/libstd | |
| parent | e65547d4fad0425d1db4f33a4d8134bf2cad939e (diff) | |
rustbuild: Tweak CFLAGS to various libstd pieces
* Pass `opt_level(2)` when calculating CFLAGS to get the right flags on iOS * Unconditionally pass `-O2` when compiling libbacktrace This should... Close #48903 Close #48906
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/build.rs b/src/libstd/build.rs index a41c155f3fb..b3c71f4d81b 100644 --- a/src/libstd/build.rs +++ b/src/libstd/build.rs @@ -98,7 +98,7 @@ fn build_libbacktrace(host: &str, target: &str) -> Result<(), ()> { .arg("--disable-host-shared") .arg(format!("--host={}", build_helper::gnu_target(target))) .arg(format!("--build={}", build_helper::gnu_target(host))) - .env("CFLAGS", env::var("CFLAGS").unwrap_or_default() + " -fvisibility=hidden")); + .env("CFLAGS", env::var("CFLAGS").unwrap_or_default() + " -fvisibility=hidden -O2")); run(Command::new(build_helper::make(host)) .current_dir(&native.out_dir) |
