forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustbuild: Update LLVM and enable ThinLTO
This commit updates LLVM to fix rust-lang#45511 (https://reviews.llvm.org/D39981) and also reenables ThinLTO for libtest now that we shouldn't hit rust-lang#45768. This also opportunistically enables ThinLTO for libstd which was previously blocked (rust-lang#45661) on test failures related to debuginfo with a presumed cause of rust-lang#45511. Closes rust-lang#45511
- Loading branch information
1 parent
85d50ce
commit 47498de
Showing
4 changed files
with
13 additions
and
6 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
Submodule libcompiler_builtins
updated
from f5532b to 02b373
Submodule llvm
updated
5 files
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 |
---|---|---|
@@ -1,10 +1,19 @@ | ||
-include ../tools.mk | ||
|
||
LOG := $(TMPDIR)/log.txt | ||
|
||
# FIXME(#46126) ThinLTO for libstd broke this test | ||
ifeq (1,0) | ||
all: | ||
ifeq ($(TARGET),x86_64-unknown-linux-gnu) | ||
ifdef SANITIZER_SUPPORT | ||
$(RUSTC) -C opt-level=1 -g -Z sanitizer=leak -Z print-link-args leak.rs | grep -q librustc_lsan | ||
$(TMPDIR)/leak 2>&1 | grep -q 'detected memory leaks' | ||
$(TMPDIR)/leak 2>&1 | tee $(LOG) | ||
grep -q 'detected memory leaks' $(LOG) | ||
endif | ||
endif | ||
|
||
else | ||
all: | ||
endif | ||
|