diff options
| author | oy <Tom_Adams@web.de> | 2012-01-08 00:01:34 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2012-01-08 00:01:34 +0100 |
| commit | d7089ea76aa1e3966f0b11de91ed5dae43ecf4ac (patch) | |
| tree | 69b5ae2d628eae5781281461cc9baabbd148a0bf | |
| parent | 45302957f19dc1f29cfad721321b24444e589db9 (diff) | |
| download | zcatch-d7089ea76aa1e3966f0b11de91ed5dae43ecf4ac.tar.gz zcatch-d7089ea76aa1e3966f0b11de91ed5dae43ecf4ac.zip | |
fixed compiler warnings for gcc on windows
| -rw-r--r-- | bam.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bam.lua b/bam.lua index ac73501f..da893e10 100644 --- a/bam.lua +++ b/bam.lua @@ -145,7 +145,10 @@ function build(settings) settings.cc.flags:Add("/wd4244") else settings.cc.flags:Add("-Wall", "-fno-exceptions") - if platform == "macosx" then + if family == "windows" then + -- disable visibility attribute support for gcc on windows + settings.cc.defines:Add("NO_VIZ") + elseif platform == "macosx" then settings.cc.flags:Add("-mmacosx-version-min=10.5", "-isysroot /Developer/SDKs/MacOSX10.5.sdk") settings.link.flags:Add("-mmacosx-version-min=10.5", "-isysroot /Developer/SDKs/MacOSX10.5.sdk") elseif config.stackprotector.value == 1 then |