Commits

Edd Dawson  committed 525ca88

Ensure zlib and libpng are built without /Za for Visual C++

  • Participants
  • Parent commits e39a1ff

Comments (0)

Files changed (1)

     opt.sources += zlib_root/'*.c'
     opt.sources -= [zlib_root/'example.c']
 
+    if 'msvc' in kit.installed():
+        opt.cflags -= ['/Za']
+
     return properties(
         libs = [kit.c.lib('z', opt)],
         includes = [zlib_root]
     opt.sources += libpng_root/'*.c'
     opt.sources -= [libpng_root/'example.c', libpng_root/'pngtest.c']
 
+    if 'msvc' in kit.installed():
+        opt.cppflags -= ['/Za']
+        opt.cflags -= ['/Za']
+
     return properties(
         libs = z.libs + [lang_kit.lib('png', opt)],
         syslibs = z.syslibs,