File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 66
77rm -rf build
88
9- if which ninja; then
9+
10+ if [ " $# " -eq 0 ]; then
11+ build_cmd=" "
12+ else
13+ build_cmd=" $@ "
14+ fi
15+
16+ if [[ $build_cmd != * " -A Win32" * && -x $( command -v ninja) ]]; then
1017 set -e
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 " $@ "
18+ cmake -B build -S yoga -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON -G Ninja " $build_cmd "
1319else
1420 set -e
15- cmake -B build -S yoga -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON " $@ "
21+ cmake -B build -S yoga -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON " $build_cmd "
1622fi
1723
1824cmake --build build --config Release
You can’t perform that action at this time.
0 commit comments