mirror of
https://github.com/google/googletest.git
synced 2025-01-14 00:20:57 +08:00
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
This commit is contained in:
parent
deaf5615f1
commit
2f2e72bae9
@ -51,7 +51,7 @@ for cc in /usr/local/bin/gcc /opt/llvm/clang/bin/clang; do
|
|||||||
--workdir="/build" \
|
--workdir="/build" \
|
||||||
--rm \
|
--rm \
|
||||||
--env="CC=${cc}" \
|
--env="CC=${cc}" \
|
||||||
--env="CXX_FLAGS=\"-Werror -Wdeprecated\"" \
|
--env=CXXFLAGS="-Werror -Wdeprecated" \
|
||||||
${LINUX_LATEST_CONTAINER} \
|
${LINUX_LATEST_CONTAINER} \
|
||||||
/bin/bash -c "
|
/bin/bash -c "
|
||||||
cmake /src \
|
cmake /src \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user