Skip to content

Commit

Permalink
Add NDEBUG flag in optimised builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ruicoelhopedro committed Feb 16, 2024
1 parent 0795e24 commit 613a581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ifeq ($(DEBUG), 1)
else ifeq ($(DEBUG), 2)
COMMON += -g -O1 -fno-inline -fno-omit-frame-pointer
else
COMMON += -O3 -flto
COMMON += -O3 -DNDEBUG -flto
LDFLAGS += -flto
endif

Expand Down

0 comments on commit 613a581

Please sign in to comment.