Skip to content

Commit 3bc9331

Browse files
committed
fix(build): drop -funsafe-math-optimizations
1 parent 07f7c60 commit 3bc9331

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ifneq (,$(IS_WINDOWS))
1515
AR = llvm-ar
1616
DEBUG_CFLAGS = -Wall -Wextra -std=$(STD) -g -O0 -DDEBUG -D_CRT_SECURE_NO_WARNINGS
1717
RELEASE_CFLAGS = -Wall -Wextra -std=$(STD) -O3 -DNDEBUG -D_CRT_SECURE_NO_WARNINGS \
18-
-fassociative-math -ftree-vectorize -funsafe-math-optimizations -funroll-loops -fno-math-errno
18+
-fassociative-math -ftree-vectorize -funroll-loops -fno-math-errno
1919
LIBS = -lws2_32 -lmswsock -lkernel32
2020
DEBUG_LDFLAGS = -fuse-ld=lld -Wl,/DEF:rayforce.def -Wl,/IMPLIB:rayforce.lib
2121
RELEASE_LDFLAGS = -fuse-ld=lld -Wl,/DEF:rayforce.def -Wl,/IMPLIB:rayforce.lib
@@ -26,7 +26,7 @@ endif
2626
ifeq ($(OS),linux)
2727
DEBUG_CFLAGS = -fPIC -Wall -Wextra -std=$(STD) -g -O0 -march=native -fsigned-char -DDEBUG -m64
2828
RELEASE_CFLAGS = -fPIC -Wall -Wextra -std=$(STD) -O3 -fsigned-char -march=native\
29-
-fassociative-math -ftree-vectorize -funsafe-math-optimizations -funroll-loops -m64\
29+
-fassociative-math -ftree-vectorize -funroll-loops -m64\
3030
-flax-vector-conversions -fno-math-errno -fomit-frame-pointer -fno-stack-protector\
3131
-ffunction-sections -fdata-sections -fno-unwind-tables -fno-asynchronous-unwind-tables\
3232
-fmacro-prefix-map=$(PWD)/=
@@ -42,7 +42,7 @@ endif
4242
ifeq ($(OS),darwin)
4343
DEBUG_CFLAGS = -fPIC -Wall -Wextra -Wunused-function -std=$(STD) -g -O0 -march=native -fsigned-char -DDEBUG -m64 -fsanitize=undefined -fsanitize=address
4444
RELEASE_CFLAGS = -fPIC -Wall -Wextra -std=$(STD) -O3 -fsigned-char -march=native\
45-
-fassociative-math -ftree-vectorize -funsafe-math-optimizations -funroll-loops -m64\
45+
-fassociative-math -ftree-vectorize -funroll-loops -m64\
4646
-flax-vector-conversions -fno-math-errno -fomit-frame-pointer -fno-stack-protector\
4747
-ffunction-sections -fdata-sections -fno-unwind-tables -fno-asynchronous-unwind-tables\
4848
-fmacro-prefix-map=$(PWD)/=

0 commit comments

Comments
 (0)