Skip to content

Commit

Permalink
Replace -Ofast with -O3 -ffast-math for compatibility with latest clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
petur committed Nov 24, 2024
1 parent acc9985 commit 4a1af5e
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 @@ -4,7 +4,7 @@ ifeq ($(ARCH),)
ARCH := native
endif
RTTIFLAGS = -fno-rtti -fno-exceptions
CXXFLAGS += -Wall -Wextra -Werror -std=c++17 -Ofast -march=$(ARCH) -mtune=$(ARCH) -flto $(RTTIFLAGS) $(PGOFLAGS)
CXXFLAGS += -Wall -Wextra -Werror -std=c++17 -O3 -ffast-math -march=$(ARCH) -mtune=$(ARCH) -flto $(RTTIFLAGS) $(PGOFLAGS)

version :=
ifeq ($(version),)
Expand Down

0 comments on commit 4a1af5e

Please sign in to comment.