diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2020-05-04 16:57:50 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-05 03:56:38 +0000 |
commit | 2e742a4fccf961395cddaeae9a4243fd487322ee (patch) | |
tree | d0050df0c74551c484e8dffa75df0043d8340413 /src/third_party | |
parent | 485fdf001d39c7f809ead645d5d892b5094e9431 (diff) | |
download | mongo-2e742a4fccf961395cddaeae9a4243fd487322ee.tar.gz |
SERVER-47679 -Wno-attribute-alias is only supported on gcc
Diffstat (limited to 'src/third_party')
-rw-r--r-- | src/third_party/gperftools-2.7/SConscript | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/third_party/gperftools-2.7/SConscript b/src/third_party/gperftools-2.7/SConscript index da956a81a05..08d9921be8c 100644 --- a/src/third_party/gperftools-2.7/SConscript +++ b/src/third_party/gperftools-2.7/SConscript @@ -107,7 +107,9 @@ for to_remove in ['-Werror', "-Wsign-compare","-Wall","-Werror=unused-result"]: removeIfPresent(env['CCFLAGS'], to_remove) if not env.TargetOSIs('windows'): - env.Append(CXXFLAGS=['-Wno-attribute-alias', '-Wno-unused-result']); + env.Append(CXXFLAGS=['-Wno-unused-result']) + if env.ToolchainIs('GCC'): + env.Append(CXXFLAGS=['-Wno-attribute-alias']) # GCC on PowerPC under C++11 mode does not define __linux which gperftools depends on if env['TARGET_ARCH'] == 'ppc64le': |