mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-09-09 19:43:04 +02:00
more accurate filter for compiler flags, allowing gcc compilation with msys2 on windows
This commit is contained in:
parent
1f51518734
commit
30979ff2e6
1 changed files with 4 additions and 4 deletions
|
@ -337,8 +337,8 @@ filter {} -- reset the filter and remove all active keywords
|
||||||
|
|
||||||
--- common compiler/linker options
|
--- common compiler/linker options
|
||||||
---------
|
---------
|
||||||
-- Windows common compiler/linker options
|
-- Visual Studio common compiler/linker options
|
||||||
filter { "system:windows", }
|
filter { "action:vs*", }
|
||||||
buildoptions {
|
buildoptions {
|
||||||
"/permissive-", "/MP", "/DYNAMICBASE",
|
"/permissive-", "/MP", "/DYNAMICBASE",
|
||||||
"/utf-8", "/Zc:char8_t-", "/EHsc", "/GL-"
|
"/utf-8", "/Zc:char8_t-", "/EHsc", "/GL-"
|
||||||
|
@ -348,8 +348,8 @@ filter { "system:windows", }
|
||||||
"/NOLOGO", "/emittoolversioninfo:no"
|
"/NOLOGO", "/emittoolversioninfo:no"
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Linux common compiler/linker options
|
-- GNU make common compiler/linker options
|
||||||
filter { "system:linux", }
|
filter { "action:gmake*", }
|
||||||
buildoptions {
|
buildoptions {
|
||||||
"-fvisibility=hidden", "-fexceptions", "-fno-jump-tables" , "-Wno-switch"
|
"-fvisibility=hidden", "-fexceptions", "-fno-jump-tables" , "-Wno-switch"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue