Skip to content

Commit

Permalink
[build] Use Ninja on Unix
Browse files Browse the repository at this point in the history
(cherry picked from commit 7918a9c)
  • Loading branch information
jslee02 committed Jun 30, 2024
1 parent 8b30a35 commit de4338c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Build dependencies
brew 'cmake'
brew 'ninja'
brew 'pkg-config'
brew 'tracy'

Expand Down
1 change: 1 addition & 0 deletions docker/dev/v6.14/Dockerfile.ubuntu.jammy
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ RUN apt-get install -y --no-install-recommends \
git \
lcov \
lsb-release \
ninja-build \
pkg-config \
software-properties-common \
valgrind
Expand Down
1 change: 1 addition & 0 deletions docker/dev/v6.14/Dockerfile.ubuntu.noble
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ RUN apt-get install -y --no-install-recommends \
git \
lcov \
lsb-release \
ninja-build \
pkg-config \
software-properties-common \
valgrind
Expand Down
1 change: 1 addition & 0 deletions docker/dev/v6.14/Dockerfile.ubuntu.oracular
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ RUN apt-get install -y --no-install-recommends \
git \
lcov \
lsb-release \
ninja-build \
pkg-config \
software-properties-common \
valgrind
Expand Down
3 changes: 2 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,10 @@ if [ -n "$DART_USE_SYSTEM_IMGUI" ]; then
cmake_args+=" -DDART_USE_SYSTEM_IMGUI=$DART_USE_SYSTEM_IMGUI"
fi

cmake .. \
cmake \
-S $source_dir \
-B $build_dir \
-G Ninja \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DDART_VERBOSE=ON \
-DDART_TREAT_WARNINGS_AS_ERRORS=ON \
Expand Down

0 comments on commit de4338c

Please sign in to comment.