Skip to content

Commit

Permalink
Compile with -fstrict-aliasing
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 always have it.
  • Loading branch information
tfpf committed Aug 18, 2024
1 parent cf221d7 commit 5150aa2
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 5150aa2

Please sign in to comment.