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 19dcd56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/make.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
cxx: g++
llvm_profdata: ''
arch: haswell
- runner: ubuntu-22.04
- runner: ubuntu-latest
shell: 'bash'
suffix: -linux-clang
cxx: clang++-14
llvm_profdata: llvm-profdata-14
cxx: clang++-18
llvm_profdata: llvm-profdata-18
arch: haswell
- runner: windows-latest
shell: 'msys2 {0}'
Expand Down
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 19dcd56

Please sign in to comment.