mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1677726 - Disable LTO for SmokeDMD.cpp r=andi
Sheriff note: We should keep this regardless of whether bug 1675600 sticks. The comment above SmokeDMD's `RunTests()` says "This test relies on the compiler not doing various optimizations ... So we compile it with -O0 (or equivalent)". That suggests that LTO should also be disallowed. Differential Revision: https://phabricator.services.mozilla.com/D97336
This commit is contained in:
parent
6cb0652b73
commit
e631afd3ae
@ -13,9 +13,9 @@ GeckoSimplePrograms(
|
||||
|
||||
# See the comment at the top of SmokeDMD.cpp:RunTests().
|
||||
if CONFIG["CXX_TYPE"] == "clang-cl":
|
||||
CXXFLAGS += ["-Og-"]
|
||||
CXXFLAGS += ["-Og-", "-clang:-fno-lto"]
|
||||
else:
|
||||
CXXFLAGS += ["-O0"]
|
||||
CXXFLAGS += ["-O0", "-fno-lto"]
|
||||
|
||||
DEFINES["MOZ_NO_MOZALLOC"] = True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user