Bug 1677726 - Disable LTO for SmokeDMD.cpp r=andi
authorDavid Major <dmajor@mozilla.com>
Wed, 18 Nov 2020 16:08:31 +0000
changeset 557825 c3e3bda248a08bb0b13122097b5b884ed5d1337f
parent 557824 5a9ef0bb1bc7396ae13036fad0a0eff0783c5662
child 557826 739b53fbd7214daa7c71e79c95705189c666a674
push id37962
push userapavel@mozilla.com
push dateWed, 18 Nov 2020 21:51:58 +0000
treeherdermozilla-central@9d797387f57c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersandi
bugs1677726, 1675600
milestone85.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
memory/replace/dmd/test/moz.build
--- a/memory/replace/dmd/test/moz.build
+++ b/memory/replace/dmd/test/moz.build
@@ -8,19 +8,19 @@ GeckoSimplePrograms(
     [
         "SmokeDMD",
     ],
     linkage=None,
 )
 
 # See the comment at the top of SmokeDMD.cpp:RunTests().
 if CONFIG["CC_TYPE"] == "clang-cl":
-    CXXFLAGS += ["-Od"]
+    CXXFLAGS += ["-Od", "-clang:-fno-lto"]
 else:
-    CXXFLAGS += ["-O0"]
+    CXXFLAGS += ["-O0", "-fno-lto"]
 
 DEFINES["MOZ_NO_MOZALLOC"] = True
 
 DisableStlWrapping()
 
 XPCSHELL_TESTS_MANIFESTS += [
     "xpcshell.ini",
 ]