diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2018-08-14 14:26:34 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2018-08-20 11:37:32 +0200 |
| commit | f4b8451ad9e2a30792f17f913ee4d1b0513d199c (patch) | |
| tree | fed26afc43d0e9a4e30fea1313d3380a343f1104 /src/bootstrap | |
| parent | 73364c8befd11d08c04511f4b0639e3bd9a1ab30 (diff) | |
| download | rust-f4b8451ad9e2a30792f17f913ee4d1b0513d199c.tar.gz rust-f4b8451ad9e2a30792f17f913ee4d1b0513d199c.zip | |
bootstrap: Never compiler llvm-emscripten with ThinLTO.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/native.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index 966673d7d2c..518fe95f3dd 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -153,7 +153,7 @@ impl Step for Llvm { .define("LLVM_TARGET_ARCH", target.split('-').next().unwrap()) .define("LLVM_DEFAULT_TARGET_TRIPLE", target); - if builder.config.llvm_thin_lto { + if builder.config.llvm_thin_lto && !emscripten { cfg.define("LLVM_ENABLE_LTO", "Thin") .define("LLVM_ENABLE_LLD", "ON"); } |
