Changeset View
Changeset View
Standalone View
Standalone View
contrib/devtools/build_cmake.sh
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | --Werror) | ||||
;; | ;; | ||||
*) | *) | ||||
TARGETS+=("$1") | TARGETS+=("$1") | ||||
shift | shift | ||||
;; | ;; | ||||
esac | esac | ||||
done | done | ||||
cmake -GNinja .. "${CMAKE_FLAGS[@]}" | cmake -GNinja "${TOPLEVEL}" "${CMAKE_FLAGS[@]}" | ||||
# If valid targets are given, use them, otherwise default to "all". | # If valid targets are given, use them, otherwise default to "all". | ||||
if [ ${#TARGETS[@]} -eq 0 ]; then | if [ ${#TARGETS[@]} -eq 0 ]; then | ||||
TARGETS=("all") | TARGETS=("all") | ||||
else | else | ||||
mapfile -t VALID_TARGETS < <(ninja -t targets all | cut -d ':' -f 1) | mapfile -t VALID_TARGETS < <(ninja -t targets all | cut -d ':' -f 1) | ||||
# "all" is not part of the targets exported by ninja, so add it. | # "all" is not part of the targets exported by ninja, so add it. | ||||
VALID_TARGETS+=("all") | VALID_TARGETS+=("all") | ||||
Show All 14 Lines |