Selaa lähdekoodia

Added default simd cc_opt for x64 (-msse4).

woollybah 9 vuotta sitten
vanhempi
commit
d7a86ceeab
3 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 1 0
      bmk.bmx
  2. 1 1
      bmk_config.bmx
  3. 3 0
      make.bmk

+ 1 - 0
bmk.bmx

@@ -1,5 +1,6 @@
 '
 '
 ' Change History :
 ' Change History :
+' 3.13 21/05/2016 - Added default simd cc_opt for x64 (-msse4).
 ' 3.12 17/04/2016 - App link optimisations.
 ' 3.12 17/04/2016 - App link optimisations.
 ' 3.11 20/02/2016 - Added -nostrictupgrade option for NG.
 ' 3.11 20/02/2016 - Added -nostrictupgrade option for NG.
 '                   Added -w option for NG.
 '                   Added -w option for NG.

+ 1 - 1
bmk_config.bmx

@@ -6,7 +6,7 @@ Import BRL.StandardIO
 ?macos
 ?macos
 Import Pub.MacOS
 Import Pub.MacOS
 ?
 ?
-Const BMK_VERSION:String = "3.12"
+Const BMK_VERSION:String = "3.13"
 
 
 Const ALL_SRC_EXTS$="bmx;i;c;m;h;cpp;cxx;mm;hpp;hxx;s;cc"
 Const ALL_SRC_EXTS$="bmx;i;c;m;h;cpp;cxx;mm;hpp;hxx;s;cc"
 
 

+ 3 - 0
make.bmk

@@ -418,6 +418,9 @@
 	globals.SetOption("cc_opts", "exceptions", "-fno-exceptions")
 	globals.SetOption("cc_opts", "exceptions", "-fno-exceptions")
 	globals.SetOption("cc_opts", "linker", "-c")
 	globals.SetOption("cc_opts", "linker", "-c")
 	globals.SetOption("cc_opts", "optimization", "-O2")
 	globals.SetOption("cc_opts", "optimization", "-O2")
+	if bmk.CPU() == "x64" then
+		globals.SetOption("cc_opts", "simd", "-msse4")
+	end
 	
 	
 	if bmk.IsDebugBuild() == 0 then
 	if bmk.IsDebugBuild() == 0 then
 		if bmk.Platform() ~= "emscripten" then
 		if bmk.Platform() ~= "emscripten" then