diff options
author | Tom Hughes <tomhughes@google.com> | 2023-02-02 18:15:42 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-02-02 18:16:20 (GMT) |
commit | 2f2e72bae991138cedd0e3d06a115022736cd568 (patch) | |
tree | c55598b28fef19bcb1df0fe4261187a7fba72417 /ci | |
parent | deaf5615f18dd3b051006ba7326e2a976f5dff46 (diff) | |
download | googletest-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.sh | 2 |
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 \ |