Skip to content

Commit

Permalink
Build with Ninja, and colorize compiler output
Browse files Browse the repository at this point in the history
  • Loading branch information
snej committed Jul 23, 2024
1 parent 344c087 commit 46e4e69
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ jobs:
uses: Dup4/actions-setup-gcc@v1
with:
version: latest
- name: Install Ninja (Linux)
if: runner.os == 'Linux'
run: sudo apt-get install -y ninja-build
- name: Install Ninja (macOS)
if: runner.os == 'macOS'
run: brew install ninja
- name: build debug
run: make debug
shell: bash
Expand Down
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ else()
-Wpedantic
-Wno-assume # Lots of bogus "argument to '__builtin_assume' has side effects"
-Wno-unknown-pragmas
-Wno-unknown-warning-option
)
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
# GCC-specific:
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Makefile! Just a launcher for scripts...

export CMAKE_GENERATOR = Ninja
export CMAKE_COLOR_DIAGNOSTICS = ON

all: debug release

clean:
Expand Down

0 comments on commit 46e4e69

Please sign in to comment.