Compare commits
2 Commits
e583c5ef6c
...
8770bd97dc
| Author | SHA1 | Date | |
|---|---|---|---|
| 8770bd97dc | |||
| 68f20bcf2d |
@@ -1019,7 +1019,8 @@ if env['COMPILER_FAMILY'] == 'gcc' or env['COMPILER_FAMILY'] == 'clang':
|
||||
# no-gnu-anonymous-struct - we don't care
|
||||
# no-missing-field-initializers - useful in some cases, annoying in most
|
||||
# no-ambiguous-reversed-operator - should be quite useful, but we get a false positive, apparently?
|
||||
env.Append(CCFLAGS = ['-Wno-gnu-anonymous-struct', '-Wno-missing-field-initializers', '-Wno-ambiguous-reversed-operator'])
|
||||
# no-parentheses-equality - false positive for fold expressions and doesn't seem to useful anyway
|
||||
env.Append(CCFLAGS = ['-Wno-gnu-anonymous-struct', '-Wno-missing-field-initializers', '-Wno-ambiguous-reversed-operator', '-Wno-parentheses-equality'])
|
||||
env.Append(CXXFLAGS = ['-fexperimental-library']) # enable std::jthread
|
||||
if build_type == 'debug':
|
||||
env.Append(CCFLAGS = ['-g', '-O0'], CPPDEFINES = ['_GLIBCXX_DEBUG'])
|
||||
@@ -1055,7 +1056,7 @@ elif env['COMPILER_FAMILY'] == 'cl':
|
||||
# C4251: missing dll-interface of some std types, yaml-cpp doesn't compile with this enabled
|
||||
# C4275: same as above
|
||||
env.Append(CCFLAGS = ['/W4', '/WX', '/wd4201', '/wd4127', '/wd4702', '/wd4251', '/wd4275', '/bigobj', '/vmg',
|
||||
f'/std:{cxx_version_name}', '/permissive-', '/FS', '/Zc:char8_t', '/utf-8'])
|
||||
f'/std:{cxx_version_name}', '/permissive-', '/FS', '/Zc:char8_t', '/utf-8', '/Zc:preprocessor'])
|
||||
env.Append(CPPDEFINES = ['_CRT_SECURE_NO_WARNINGS']) # I'd like to not use MSVC specific versions of functions because they are "safer" ...
|
||||
env.Append(DEPS_CXXFLAGS = ['/Zc:char8_t', '/utf-8', '/vmg'])
|
||||
if env['CXX_NO_EXCEPTIONS']:
|
||||
|
||||
Reference in New Issue
Block a user