Skip to content

Commit

Permalink
Build locally with -Werror
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Dec 21, 2024
1 parent 28f784a commit f28cc55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ build: debug ## build in debug mode

.PHONY: debug
debug: ## build in debug mode
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DLIBASSERT_BUILD_TESTING=On
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DLIBASSERT_BUILD_TESTING=On -DLIBASSERT_WERROR_BUILD=On
cmake --build build

.PHONY: release
release: ## build in release mode (with debug info)
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DLIBASSERT_BUILD_TESTING=On
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DLIBASSERT_BUILD_TESTING=On -DLIBASSERT_WERROR_BUILD=On
cmake --build build

.PHONY: debug-msvc
Expand Down

0 comments on commit f28cc55

Please sign in to comment.