Skip to content

Commit

Permalink
Makefile: disable RTTI (#1112)
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui authored Jan 20, 2025
1 parent 12c261b commit 742ccfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COMMIT_DATE ?= $(shell git show -s --date=format-local:'%Y-%m-%d' --format=%cd)

DEBUG_FLAGS := -g -O0 -DDEBUG
RELEASE_FLAGS := -O3 -DNDEBUG -flto
CXXFLAGS := -std=c++20 -fdiagnostics-color -pedantic-errors -Wall -Wextra -Wpedantic
CXXFLAGS := -std=c++20 -fdiagnostics-color -pedantic-errors -Wall -Wextra -Wpedantic -fno-rtti
ifeq ($(RELEASE), 1)
CXXFLAGS += $(RELEASE_FLAGS)
else
Expand Down
2 changes: 1 addition & 1 deletion cabin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ nlohmann_json = {version = "3.10.5", system = true}
tbb = {version = ">=2021.5.0 && <2023.0.0", system = true}

[profile]
cxxflags = ["-pedantic-errors", "-Wall", "-Wextra", "-Wpedantic"]
cxxflags = ["-pedantic-errors", "-Wall", "-Wextra", "-Wpedantic", "-fno-rtti"]

[profile.dev]
comp-db = true # always build comp DB on dev
Expand Down

0 comments on commit 742ccfb

Please sign in to comment.