mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Separate C and C++ flags to prevent warnings while building bgfx
This commit is contained in:
@@ -414,7 +414,6 @@ function toolchain(_buildDir, _libDir)
|
||||
defines { "WIN32" }
|
||||
includedirs { path.join(bxDir, "include/compat/mingw") }
|
||||
buildoptions {
|
||||
"-std=c++0x",
|
||||
"-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",
|
||||
|
||||
Reference in New Issue
Block a user