summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/scripts/toolchain.lua
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bx/scripts/toolchain.lua')
-rw-r--r--3rdparty/bx/scripts/toolchain.lua16
1 files changed, 11 insertions, 5 deletions
diff --git a/3rdparty/bx/scripts/toolchain.lua b/3rdparty/bx/scripts/toolchain.lua
index 5c2cf4c86e9..85f24e10746 100644
--- a/3rdparty/bx/scripts/toolchain.lua
+++ b/3rdparty/bx/scripts/toolchain.lua
@@ -298,12 +298,12 @@ function toolchain(_buildDir, _libDir)
premake.vstudio.toolset = ("v110_xp")
location (path.join(_buildDir, "projects", _ACTION .. "-xp"))
end
-
+
if ("vs2013-xp") == _OPTIONS["vs"] then
premake.vstudio.toolset = ("v120_xp")
location (path.join(_buildDir, "projects", _ACTION .. "-xp"))
end
-
+
elseif _ACTION == "xcode4" then
if "osx" == _OPTIONS["xcode"] then
@@ -414,7 +414,6 @@ function toolchain(_buildDir, _libDir)
defines { "WIN32" }
includedirs { path.join(bxDir, "include/compat/mingw") }
buildoptions {
- "-std=c++11",
"-Wunused-value",
"-fdata-sections",
"-ffunction-sections",
@@ -422,6 +421,9 @@ function toolchain(_buildDir, _libDir)
"-Wunused-value",
"-Wundef",
}
+ buildoptions_cpp {
+ "-std=c++0x",
+ }
linkoptions {
"-Wl,--gc-sections",
"-static-libgcc",
@@ -486,11 +488,13 @@ function toolchain(_buildDir, _libDir)
configuration { "linux-*" }
buildoptions {
- "-std=c++0x",
"-msse2",
"-Wunused-value",
"-Wundef",
}
+ buildoptions_cpp {
+ "-std=c++0x",
+ }
links {
"rt",
"dl",
@@ -845,10 +849,12 @@ function toolchain(_buildDir, _libDir)
"__STDC_VERSION__=199901L",
}
buildoptions {
- "-std=c++0x",
"-Wunused-value",
"-Wundef",
}
+ buildoptions_cpp {
+ "-std=c++0x",
+ }
includedirs {
"/opt/vc/include",
"/opt/vc/include/interface/vcos/pthreads",