summaryrefslogtreecommitdiff
path: root/src/third_party/benchmark
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/benchmark')
-rw-r--r--src/third_party/benchmark/SConscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/third_party/benchmark/SConscript b/src/third_party/benchmark/SConscript
index 5b11b380ab6..c78879b1001 100644
--- a/src/third_party/benchmark/SConscript
+++ b/src/third_party/benchmark/SConscript
@@ -12,6 +12,9 @@ if env.TargetOSIs('windows'):
env.Append(LIBS=["ShLwApi"])
+if not env.TargetOSIs('windows'):
+ env.AddToCCFLAGSIfSupported('-Wno-unused-but-set-variable')
+
env.Append(
CPPDEFINES=["HAVE_STD_REGEX"],
CXXFLAGS=[] if env.TargetOSIs('windows') else [