SConscript (11370:af870035ab6b) | SConscript (11500:024291dab733) |
---|---|
1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 1070 unchanged lines hidden (view full) --- 1079 # and the command-line option before adding the compiler and 1080 # linker flags. 1081 if GetOption('with_ubsan') and \ 1082 compareVersions(env['GCC_VERSION'], '4.9') >= 0: 1083 new_env.Append(CCFLAGS='-fsanitize=undefined') 1084 new_env.Append(LINKFLAGS='-fsanitize=undefined') 1085 1086 # The address sanitizer is available for gcc >= 4.8 | 1# -*- mode:python -*- 2 3# Copyright (c) 2004-2005 The Regents of The University of Michigan 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright --- 1070 unchanged lines hidden (view full) --- 1079 # and the command-line option before adding the compiler and 1080 # linker flags. 1081 if GetOption('with_ubsan') and \ 1082 compareVersions(env['GCC_VERSION'], '4.9') >= 0: 1083 new_env.Append(CCFLAGS='-fsanitize=undefined') 1084 new_env.Append(LINKFLAGS='-fsanitize=undefined') 1085 1086 # The address sanitizer is available for gcc >= 4.8 |
1087 if GetOption('with_asan') and \ 1088 compareVersions(env['GCC_VERSION'], '4.8') >= 0: 1089 new_env.Append(CCFLAGS='-fsanitize=address') | 1087 if GetOption('with_asan'): 1088 new_env.Append(CCFLAGS=['-fsanitize=address', 1089 '-fno-omit-frame-pointer']) |
1090 new_env.Append(LINKFLAGS='-fsanitize=address') 1091 1092 if env['CLANG']: 1093 swig_env.Append(CCFLAGS=['-Wno-sometimes-uninitialized', 1094 '-Wno-deprecated-register', 1095 '-Wno-tautological-compare']) 1096 1097 # We require clang >= 3.1, so there is no need to check any 1098 # versions here. 1099 if GetOption('with_ubsan'): 1100 new_env.Append(CCFLAGS='-fsanitize=undefined') 1101 new_env.Append(LINKFLAGS='-fsanitize=undefined') 1102 1103 if GetOption('with_asan'): | 1090 new_env.Append(LINKFLAGS='-fsanitize=address') 1091 1092 if env['CLANG']: 1093 swig_env.Append(CCFLAGS=['-Wno-sometimes-uninitialized', 1094 '-Wno-deprecated-register', 1095 '-Wno-tautological-compare']) 1096 1097 # We require clang >= 3.1, so there is no need to check any 1098 # versions here. 1099 if GetOption('with_ubsan'): 1100 new_env.Append(CCFLAGS='-fsanitize=undefined') 1101 new_env.Append(LINKFLAGS='-fsanitize=undefined') 1102 1103 if GetOption('with_asan'): |
1104 new_env.Append(CCFLAGS='-fsanitize=address') | 1104 new_env.Append(CCFLAGS=['-fsanitize=address', 1105 '-fno-omit-frame-pointer']) |
1105 new_env.Append(LINKFLAGS='-fsanitize=address') 1106 1107 werror_env = new_env.Clone() 1108 # Treat warnings as errors but white list some warnings that we 1109 # want to allow (e.g., deprecation warnings). 1110 werror_env.Append(CCFLAGS=['-Werror', 1111 '-Wno-error=deprecated-declarations', 1112 '-Wno-error=deprecated', --- 214 unchanged lines hidden --- | 1106 new_env.Append(LINKFLAGS='-fsanitize=address') 1107 1108 werror_env = new_env.Clone() 1109 # Treat warnings as errors but white list some warnings that we 1110 # want to allow (e.g., deprecation warnings). 1111 werror_env.Append(CCFLAGS=['-Werror', 1112 '-Wno-error=deprecated-declarations', 1113 '-Wno-error=deprecated', --- 214 unchanged lines hidden --- |