aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@google.com>2023-02-02 10:15:42 -0800
committerCopybara-Service <copybara-worker@google.com>2023-02-02 10:16:20 -0800
commit2f2e72bae991138cedd0e3d06a115022736cd568 (patch)
treec55598b28fef19bcb1df0fe4261187a7fba72417 /ci
parentdeaf5615f18dd3b051006ba7326e2a976f5dff46 (diff)
downloadgoogletest-2f2e72bae991138cedd0e3d06a115022736cd568.zip
googletest-2f2e72bae991138cedd0e3d06a115022736cd568.tar.gz
googletest-2f2e72bae991138cedd0e3d06a115022736cd568.tar.bz2
Fix compiler flags in Linux presubmit
CXX_FLAGS should be CXXFLAGS and the quoting was wrong. As a result, "-Werror -Wdeprecated" was not being applied. https://cmake.org/cmake/help/latest/envvar/CXXFLAGS.html PiperOrigin-RevId: 506656655 Change-Id: Ic5e861be3b9c32257eb9aabb845c931f3cba7122
Diffstat (limited to 'ci')
-rw-r--r--ci/linux-presubmit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/linux-presubmit.sh b/ci/linux-presubmit.sh
index 4eb5bbe..9e15d9a 100644
--- a/ci/linux-presubmit.sh
+++ b/ci/linux-presubmit.sh
@@ -51,7 +51,7 @@ for cc in /usr/local/bin/gcc /opt/llvm/clang/bin/clang; do
--workdir="/build" \
--rm \
--env="CC=${cc}" \
- --env="CXX_FLAGS=\"-Werror -Wdeprecated\"" \
+ --env=CXXFLAGS="-Werror -Wdeprecated" \
${LINUX_LATEST_CONTAINER} \
/bin/bash -c "
cmake /src \