Skip to content

Commit

Permalink
Tune compiler/linker options
Browse files Browse the repository at this point in the history
  • Loading branch information
c4rlo committed Nov 23, 2024
1 parent 974b2b1 commit f5e9d64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ prefix := /usr/local
install_runner := sudo

CXXFLAGS_base := -MMD -MP -Wall -Wextra -Werror -Wtype-limits -Wpedantic -pedantic-errors \
-std=c++23 -D_GNU_SOURCE -march=native -pipe -Isrc
-std=c++23 -D_GNU_SOURCE -march=native -fno-plt -pipe -Isrc
CXXFLAGS_release := -O3 -flto -DNDEBUG
CXXFLAGS_debug := -Og -ggdb3 -fsanitize=address -fsanitize=undefined -D_GLIBCXX_DEBUG
CXXFLAGS_debug := -Og -ggdb3 -fsanitize=address -fsanitize=undefined -fhardened -D_GLIBCXX_DEBUG

LDFLAGS_base := -pipe
LDFLAGS_base := -pipe -Wl,--sort-common,--as-needed -z relro -z now -z pack-relative-relocs
LDFLAGS_release := -flto -s
LDFLAGS_debug := -fsanitize=address -fsanitize=undefined
LDFLAGS_debug := -fsanitize=address -fsanitize=undefined -fhardened
LDLIBS := -lstdc++

MAKEFLAGS := -j $(shell nproc)
Expand Down

0 comments on commit f5e9d64

Please sign in to comment.