Changeset 121 for trunk/nv.lua


Ignore:
Timestamp:
06/15/13 17:47:57 (12 years ago)
Author:
epyon
Message:
  • Nova builds with -Weverything/-Wall/-pedantic/etc on: on MSVC 2012 on GCC 4.6.3 on clang 3.2
  • ... without a single fucking warning.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv.lua

    r120 r121  
    1212                includedirs { os.getenv("GLM_PATH") }
    1313        configuration "gmake"
    14                 buildoptions "-std=c++0x"
     14                if _ACTION == "gmake-clang" then
     15                        buildoptions {
     16                                "-std=c++11",
     17                                "-Weverything",
     18                                -- obviously we don't care about C++98 compatibility
     19                                "-Wno-c++98-compat",
     20                                -- obviously we don't care about C++98 compatibility
     21                                "-Wno-c++98-compat-pedantic",
     22                                -- an evil one has to embrace
     23                                "-Wno-float-equal",
     24                                -- padding is a non-issue at the moment
     25                                "-Wno-padded",
     26                                -- we don't want to list all 128 keys of the key
     27                                -- enum each time, right?
     28                                "-Wno-switch-enum",
     29                                -- yes, we need exit time destructors for libraries
     30                                "-Wno-exit-time-destructors",
     31                                -- same here
     32                                "-Wno-global-constructors",
     33                                -- no reasonable way to fix this with abstract
     34                                -- interfaces.
     35                                "-Wno-weak-vtables"
     36                        }
     37                else
     38                        buildoptions { "-std=c++0x" }
     39                end
     40
    1541        configuration "vs*"
    1642                defines { "_SECURE_SCL=0", "_CRT_SECURE_NO_WARNINGS=1" }
Note: See TracChangeset for help on using the changeset viewer.