Bug 1530562 - Set SmokeDMD compiler flags depending on compiler type rather than target OS. r=mshal
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 26 Feb 2019 22:06:37 +0000
changeset 461276 74f246913bb514e59b39cd7a1a2ce97bc2db8eff
parent 461275 bb361d09129fac430e1a70d0108a7e15893e6b53
child 461277 8f0627e655a9a1aacce3134cc848fc9c81916d4a
push id35621
push userncsoregi@mozilla.com
push dateWed, 27 Feb 2019 04:29:56 +0000
treeherdermozilla-central@31abc7fd9a26 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmshal
bugs1530562
milestone67.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 1530562 - Set SmokeDMD compiler flags depending on compiler type rather than target OS. r=mshal Differential Revision: https://phabricator.services.mozilla.com/D21161
memory/replace/dmd/test/moz.build
--- a/memory/replace/dmd/test/moz.build
+++ b/memory/replace/dmd/test/moz.build
@@ -4,17 +4,17 @@
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 GeckoSimplePrograms([
     'SmokeDMD',
 ], linkage=None)
 
 # See the comment at the top of SmokeDMD.cpp:RunTests().
-if CONFIG['OS_ARCH'] == 'WINNT':
+if CONFIG['CXX_TYPE'] == 'clang-cl':
     CXXFLAGS += ['-Og-']
 else:
     CXXFLAGS += ['-O0']
 
 DEFINES['MOZ_NO_MOZALLOC'] = True
 
 DisableStlWrapping()