diff --git a/AMBuildScript b/AMBuildScript index a2081bc..8e84de6 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -177,10 +177,10 @@ class MMSConfig(object): if cxx.family == 'gcc': cxx.cflags += ['-mfpmath=sse'] if cxx.family == 'clang': - if cfg.version >= 'clang-3.6': + if cxx.version >= 'clang-3.6': cxx.cxxflags += ['-Wno-inconsistent-missing-override'] cxx.cxxflags += ['-Wno-implicit-exception-spec-mismatch'] - if cxx.version >= 'apple-clang-5.1' or cfg.version >= 'clang-3.4': + if cxx.version >= 'apple-clang-5.1' or cxx.version >= 'clang-3.4': cxx.cxxflags += ['-Wno-deprecated-register'] else: cxx.cxxflags += ['-Wno-deprecated'] @@ -473,4 +473,4 @@ if builder.backend == 'amb2': builder.Build(BuildScripts, { 'MMS': MMS }) if builder.options.breakpad_dump: - builder.Build('support/buildbot/BreakpadSymbols', { 'MMS': MMS }) \ No newline at end of file + builder.Build('support/buildbot/BreakpadSymbols', { 'MMS': MMS })