summaryrefslogtreecommitdiff
path: root/src/mongo/util
diff options
context:
space:
mode:
authorAndrew Morrow <andrew.c.morrow@gmail.com>2022-12-13 13:56:23 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-12-13 23:03:13 +0000
commit7657e615d237c2e198ee296e8462c0f3b54f6465 (patch)
tree7cf37a749ae79ce6c2b11080e1453aedf4bb78a0 /src/mongo/util
parentdf32b43a03177b6cb9295549c6f8c5ca384ef82a (diff)
downloadmongo-7657e615d237c2e198ee296e8462c0f3b54f6465.tar.gz
SERVER-62994 Use v4 toolchain for everything except clang format
It has been a pleasure working here and quite the wild ride. Good luck everyone.
Diffstat (limited to 'src/mongo/util')
-rw-r--r--src/mongo/util/options_parser/SConscript10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/util/options_parser/SConscript b/src/mongo/util/options_parser/SConscript
index 1290fdc521a..a1b5030b244 100644
--- a/src/mongo/util/options_parser/SConscript
+++ b/src/mongo/util/options_parser/SConscript
@@ -7,6 +7,15 @@ env = env.Clone()
optsEnv = env.Clone()
optsEnv.InjectThirdParty(libraries=['yaml'])
+# TODO BUILD-16566
+# This warning cause false positives with the v4 toolchain gcc on Ubuntu 2022 ARM64
+# platforms, in short term we will disable the warning until we can figure out what the
+# underlying issue is. Once the toolchain is updated, the workaround below should be removed.
+if env.ToolchainIs('gcc') and env['TARGET_ARCH'] == 'aarch64':
+ no_misleading_indentation_flag = ['-Wno-misleading-indentation']
+else:
+ no_misleading_indentation_flag = []
+
optsEnv.Library(
target='options_parser',
source=[
@@ -19,6 +28,7 @@ optsEnv.Library(
'startup_options.cpp',
'value.cpp',
],
+ CCFLAGS=no_misleading_indentation_flag + optsEnv.get('CCFLAGS', []),
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/third_party/shim_yaml',