Skip to content

Commit b535c4d

Browse files
committed
add fallback when ninja fails
1 parent ad8f308 commit b535c4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

generate_build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ rm -rf build
88

99
if which ninja; then
1010
set -e
11-
cmake -B build -S yoga -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON -G Ninja "$@"
11+
cmake -B build -S yoga -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON -G Ninja "$@" \
12+
|| cmake -B build -S yoga -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON "$@"
1213
else
1314
set -e
1415
cmake -B build -S yoga -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON "$@"

0 commit comments

Comments
 (0)