Enable strict aliasing for release builds
This commit is contained in:
parent
e0afec7743
commit
9d3f982f52
3 changed files with 6 additions and 3 deletions
5
.github/workflows/linux.yml
vendored
5
.github/workflows/linux.yml
vendored
|
@ -101,7 +101,10 @@ jobs:
|
|||
CXX: ccache g++
|
||||
LD: gcc
|
||||
RANLIB: gcc-ranlib
|
||||
FLAGS: -O3 -flto -ffunction-sections -fdata-sections -DNDEBUG -pipe
|
||||
FLAGS: >-
|
||||
-O3 -fstrict-aliasing -fno-signed-zeros -fno-trapping-math
|
||||
-fassociative-math -mfpmath=sse -msse4.2 -flto -ffunction-sections
|
||||
-fdata-sections -DNDEBUG -pipe
|
||||
LINKFLAGS: -Wl,--as-needed
|
||||
run: |
|
||||
set -x
|
||||
|
|
2
.github/workflows/macos.yml
vendored
2
.github/workflows/macos.yml
vendored
|
@ -58,7 +58,7 @@ jobs:
|
|||
env:
|
||||
CC: ccache clang
|
||||
CXX: ccache clang++
|
||||
FLAGS: -O3 -DNDEBUG -pipe -march=nehalem
|
||||
FLAGS: -DNDEBUG -O3 -fno-math-errno -fstrict-aliasing -march=nehalem -flto=thin -pipe
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install C++ compiler and libraries
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue