Skip to content

Commit c6b872b

Browse files
committed
WIP: Implement dummy ThinLTO
FIXME: This seems very slow. ==> Not sure anymore: compare with the master branch.
1 parent c341614 commit c6b872b

File tree

5 files changed

+438
-42
lines changed

5 files changed

+438
-42
lines changed

build_system/src/config.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,10 @@ impl ConfigInfo {
389389

390390
// Since we don't support ThinLTO, disable LTO completely when not trying to do LTO.
391391
// TODO(antoyo): remove when we can handle ThinLTO.
392-
if !env.contains_key(&"FAT_LTO".to_string()) {
392+
// TODO: remove:
393+
/*if !env.contains_key(&"FAT_LTO".to_string()) {
393394
rustflags.push("-Clto=off".to_string());
394-
}
395+
}*/
395396
// FIXME(antoyo): remove once the atomic shim is gone
396397
if os_name == "Darwin" {
397398
rustflags.extend_from_slice(&[

0 commit comments

Comments
 (0)