Enable strict aliasing for release builds
This commit is contained in:
parent
e0afec7743
commit
9d3f982f52
3 changed files with 6 additions and 3 deletions
|
@ -15,7 +15,7 @@ cflags_debug+=("${cflags[@]}" -g -fno-omit-frame-pointer)
|
|||
# Note: associative-math is needed for vectorization of floating point
|
||||
# calculations, which also relies on no-signed-zeros and
|
||||
# no-trapping-math.
|
||||
cflags_release+=("${cflags[@]}" -DNDEBUG -O3 -fno-strict-aliasing
|
||||
cflags_release+=("${cflags[@]}" -DNDEBUG -O3 -fstrict-aliasing
|
||||
-fno-signed-zeros -fno-trapping-math -fassociative-math
|
||||
-frename-registers -ffunction-sections -fdata-sections)
|
||||
cflags_pgotrain+=("${cflags_debug[@]}" -pg -ftree-vectorize)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue