Bug 1541179 - Part 10: Update and tidy suite/app/ build files. r=frg a=frg
authorIan Neal <iann_cvs@blueyonder.co.uk>
Thu, 11 Apr 2019 20:30:43 +0200
changeset 32170 382cd01f1369
parent 32169 5b18ffe2d0be
child 32171 4353454cfd13
push id183
push userfrgrahl@gmx.net
push dateThu, 11 Apr 2019 18:31:37 +0000
treeherdercomm-esr60@8e29ae45df19 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfrg, frg
bugs1541179, 1235982
Bug 1541179 - Part 10: Update and tidy suite/app/ build files. r=frg a=frg Port Bug 1235982 [Investigate enabling VS2015's "Control Flow Guard" (CFG) security checks using /guard:cf].
suite/app/moz.build
--- a/suite/app/moz.build
+++ b/suite/app/moz.build
@@ -44,16 +44,21 @@ if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_
         'sandbox_s',
     ]
 
     DELAYLOAD_DLLS += [
         'winmm.dll',
         'user32.dll',
     ]
 
+    if CONFIG['CC_TYPE'] == "msvc":
+        CFLAGS += ['-guard:cf']
+        CXXFLAGS += ['-guard:cf']
+        LDFLAGS += ['-guard:cf']
+
 # Control the default heap size.
 # This is the heap returned by GetProcessHeap().
 # As we use the CRT heap, the default size is too large and wastes VM.
 #
 # The default heap size is 1MB on Win32.
 # The heap will grow if need be.
 #
 # Set it to 256k.  See bug 127069.