Page MenuHomePhabricator

D7360.diff
No OneTemporary

D7360.diff

diff --git a/contrib/devtools/build_cmake.sh b/contrib/devtools/build_cmake.sh
--- a/contrib/devtools/build_cmake.sh
+++ b/contrib/devtools/build_cmake.sh
@@ -16,6 +16,7 @@
echo " --clang: build with clang/clang++"
echo " --gcc: build with gcc/g++"
echo " --junit: enable Junit reports generation"
+ echo " --no-build: Only run the configuration step and skip the build"
echo " --Werror: add -Werror to the compiler flags"
echo "Environment variables:"
echo " CMAKE_FLAGS: array of the CMAKE flags to use for the build"
@@ -32,6 +33,7 @@
read -a CMAKE_FLAGS <<< "${CMAKE_FLAGS}"
+BUILD="yes"
TARGETS=()
while [[ $# -gt 0 ]]; do
case $1 in
@@ -55,6 +57,10 @@
)
shift
;;
+ --no-build)
+ BUILD="no"
+ shift
+ ;;
--Werror)
CMAKE_FLAGS+=(
"-DCMAKE_C_FLAGS=-Werror"
@@ -91,4 +97,7 @@
fi
# Run build
-ninja "${TARGETS[@]}"
+if [ "${BUILD}" == "yes" ]
+then
+ ninja "${TARGETS[@]}"
+fi

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 1, 08:54 (27 m, 34 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187138
Default Alt Text
D7360.diff (979 B)

Event Timeline