Skip to content

Commit

Permalink
Compile with -fstrict-aliasing (#50)
Browse files Browse the repository at this point in the history
According to the GCC manual, this flag is automatically added when optimisations are enabled, but I would like to have it even when compiling without optimisations (i.e. in debug mode).
  • Loading branch information
tfpf authored Aug 18, 2024
1 parent cf221d7 commit bce4eb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom-prompt/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CC = gcc
CFLAGS = -std=c11 -Wall -Wextra
CXXFLAGS = -std=c++17 -Wall -Wextra
CFLAGS = -fstrict-aliasing -std=c11 -Wall -Wextra
CXXFLAGS = -fstrict-aliasing -std=c++17 -Wall -Wextra
LDLIBS = -lstdc++

MainSource = custom-prompt.cc
Expand Down

0 comments on commit bce4eb7

Please sign in to comment.