Branimir Karadžić 7 سال پیش
والد
کامیت
468e39c257
1فایلهای تغییر یافته به همراه1 افزوده شده و 40 حذف شده
  1. 1 40
      scripts/toolchain.lua

+ 1 - 40
scripts/toolchain.lua

@@ -194,6 +194,7 @@ function toolchain(_buildDir, _libDir)
 	end
 
 	flags {
+		"Cpp11",
 		"ExtraWarnings",
 	}
 
@@ -644,9 +645,6 @@ function toolchain(_buildDir, _libDir)
 			"-Wunused-value",
 			"-Wundef",
 		}
-		buildoptions_cpp {
-			"-std=c++11",
-		}
 		linkoptions {
 			"-Wl,--gc-sections",
 			"-static",
@@ -734,9 +732,6 @@ function toolchain(_buildDir, _libDir)
 			"-Wundef",
 --			"-Wuseless-cast",
 		}
-		buildoptions_cpp {
-			"-std=c++11",
-		}
 		links {
 			"rt",
 			"dl",
@@ -786,9 +781,6 @@ function toolchain(_buildDir, _libDir)
 			"-Wunused-value",
 			"-Wundef",
 		}
-		buildoptions_cpp {
-			"-std=c++11",
-		}
 		links {
 			"rt",
 			"dl",
@@ -805,9 +797,6 @@ function toolchain(_buildDir, _libDir)
 			"-Wunused-value",
 			"-Wundef",
 		}
-		buildoptions_cpp {
-			"-std=c++11",
-		}
 		links {
 			"rt",
 			"dl",
@@ -846,9 +835,6 @@ function toolchain(_buildDir, _libDir)
 			"-Wunused-value",
 			"-Wundef",
 		}
-		buildoptions_cpp {
-			"-std=c++11",
-		}
 		linkoptions {
 			"-no-canonical-prefixes",
 			"-Wl,--no-undefined",
@@ -866,7 +852,6 @@ function toolchain(_buildDir, _libDir)
 			"__STEAMLINK__=1", -- There is no special prefedined compiler symbol to detect SteamLink, faking it.
 		}
 		buildoptions {
-			"-std=c++11",
 			"-Wfatal-errors",
 			"-Wunused-value",
 			"-Wundef",
@@ -981,9 +966,6 @@ function toolchain(_buildDir, _libDir)
 			"-Wunused-value",
 			"-Wundef",
 		}
-		buildoptions_cpp {
-			"-std=c++11",
-		}
 
 	configuration { "freebsd" }
 		targetdir (path.join(_buildDir, "freebsd/bin"))
@@ -1041,12 +1023,6 @@ function toolchain(_buildDir, _libDir)
 		objdir (path.join(_buildDir, "osx_universal/bin"))
 
 	configuration { "osx" }
-		buildoptions_cpp {
-			"-std=c++11",
-		}
-		buildoptions_objcpp {
-			"-std=c++11",
-		}
 		buildoptions {
 			"-Wfatal-errors",
 			"-msse2",
@@ -1059,12 +1035,6 @@ function toolchain(_buildDir, _libDir)
 		linkoptions {
 			"-lc++",
 		}
-		buildoptions_cpp {
-			"-std=c++11",
-		}
-		buildoptions_objcpp {
-			"-std=c++11",
-		}
 		buildoptions {
 			"-Wfatal-errors",
 			"-Wunused-value",
@@ -1207,9 +1177,6 @@ function toolchain(_buildDir, _libDir)
 			"$(SCE_ORBIS_SDK_DIR)/target/include",
 			"$(SCE_ORBIS_SDK_DIR)/target/include_common",
 		}
-		buildoptions_cpp {
-			"-std=c++11",
-		}
 
 	configuration { "rpi" }
 		targetdir (path.join(_buildDir, "rpi/bin"))
@@ -1226,9 +1193,6 @@ function toolchain(_buildDir, _libDir)
 			"-Wunused-value",
 			"-Wundef",
 		}
-		buildoptions_cpp {
-			"-std=c++11",
-		}
 		includedirs {
 			"/opt/vc/include",
 			"/opt/vc/include/interface/vcos/pthreads",
@@ -1258,9 +1222,6 @@ function toolchain(_buildDir, _libDir)
 			"-Wundef",
 			"--sysroot=$(FREEDOM_E_SDK)/toolchain/riscv32-unknown-elf",
 		}
-		buildoptions_cpp {
-			"-std=c++11",
-		}
 
 	configuration {} -- reset configuration