File tree Expand file tree Collapse file tree
runtime_src/tools/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ if (MSVC)
4444 /Qspectre # compile with the Spectre mitigations switch
4545 /ZH:SHA_256 # enable secure source code hashing
4646 /guard:cf # enable compiler control guard feature (CFG) to prevent attackers from redirecting execution to unsafe locations
47+ /GF # eliminate duplicate strings
4748 $<$<NOT :$<CONFIG :Debug >>:/guard :cast > # enable cast guard to prevent type confusion
4849 $<$<NOT :$<CONFIG :Debug >>:/d2CastGuardFailureMode :fastfail > # fastfail mode for cast guard
4950 $<$<NOT :$<CONFIG :Debug >>:/GL > # enable whole program optimization
50- $<$<NOT :$<CONFIG :Debug >>:/GF > # eliminate duplicate strings
5151 )
5252 add_link_options (
5353 /NODEFAULTLIB:libucrt$<$<CONFIG:Debug>:d>.lib # Hybrid CRT
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ def getBuildAndInstallLibraryMinimum(self, verbose):
237237 if verbose == True :
238238 print ("Building and installing the boost library..." )
239239
240- cmd = "b2 -j6 install toolset=msvc-14.1 --prefix=" + self .install_dir + " --build-type=complete address-model=64 architecture=x86 link=static threading=multi --with-filesystem --with-program_options --with-system"
240+ cmd = "b2 -j6 install toolset=msvc-14.1 --prefix=" + self .install_dir + " --build-type=complete address-model=64 architecture=x86 link=static threading=multi cxxflags=/W3 --with-filesystem --with-program_options --with-system"
241241 print (cmd )
242242 os .system (cmd )
243243
@@ -285,7 +285,7 @@ def getBuildAndInstallLibrary(self, verbose):
285285 if verbose == True :
286286 print ("Building and installing the boost library..." )
287287
288- cmd = "b2 -j6 install toolset=msvc-14.1 --prefix=" + self .install_dir + " --build-type=complete"
288+ cmd = "b2 -j6 install toolset=msvc-14.1 --prefix=" + self .install_dir + " --build-type=complete cxxflags=/W3 "
289289 print (cmd )
290290 os .system (cmd )
291291
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ def getBuildAndInstallLibraryMinimum(self, verbose):
237237 if verbose == True :
238238 print ("Building and installing the boost library..." )
239239
240- cmd = "b2 -j6 install toolset=msvc --prefix=" + self .install_dir + " --build-type=complete address-model=64 architecture=x86 link=static threading=multi --with-filesystem --with-program_options --with-system"
240+ cmd = "b2 -j6 install toolset=msvc --prefix=" + self .install_dir + " --build-type=complete address-model=64 architecture=x86 link=static threading=multi cxxflags=/W3 --with-filesystem --with-program_options --with-system"
241241 print (cmd )
242242 os .system (cmd )
243243
@@ -285,7 +285,7 @@ def getBuildAndInstallLibrary(self, verbose):
285285 if verbose == True :
286286 print ("Building and installing the boost library..." )
287287
288- cmd = "b2 -j6 install toolset=msvc --prefix=" + self .install_dir + " --build-type=complete"
288+ cmd = "b2 -j6 install toolset=msvc --prefix=" + self .install_dir + " --build-type=complete cxxflags=/W3 "
289289 print (cmd )
290290 os .system (cmd )
291291
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ def getBuildAndInstallLibraryMinimum(self, verbose):
249249 if verbose == True :
250250 print ("Building and installing the boost library..." )
251251
252- cmd = "b2 -j6 install toolset=msvc --prefix=" + self .install_dir + " --build-type=complete address-model=64 architecture=x86 link=static threading=multi --with-filesystem --with-program_options --with-system"
252+ cmd = "b2 -j6 install toolset=msvc --prefix=" + self .install_dir + " --build-type=complete address-model=64 architecture=x86 link=static threading=multi cxxflags=/W3 --with-filesystem --with-program_options --with-system"
253253 print (cmd )
254254 os .system (cmd )
255255
@@ -297,7 +297,7 @@ def getBuildAndInstallLibrary(self, verbose):
297297 if verbose == True :
298298 print ("Building and installing the boost library..." )
299299
300- cmd = "b2 -j6 install toolset=msvc --prefix=" + self .install_dir + " --build-type=complete"
300+ cmd = "b2 -j6 install toolset=msvc --prefix=" + self .install_dir + " --build-type=complete cxxflags=/W3 "
301301 print (cmd )
302302 os .system (cmd )
303303
You can’t perform that action at this time.
0 commit comments