Skip to content

Commit

Permalink
[Mod] build: Makefile: Remove -ffast-math in order to avoid warnings …
Browse files Browse the repository at this point in the history
…with modern Clang. See r15720.

git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.29@22445 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Dec 2, 2024
1 parent 25d8870 commit c53b392
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ CXXFLAGS += -O0 -g -fno-omit-frame-pointer
CFLAGS += -O0 -g -fno-omit-frame-pointer
else
ifeq ($(OPTIMIZE_SIZE),1)
CXXFLAGS += -Os -ffast-math
CFLAGS += -Os -ffast-math -fno-strict-aliasing
CXXFLAGS += -Os
CFLAGS += -Os -fno-strict-aliasing
LDFLAGS +=
ifeq ($(MPT_COMPILER_NOGCSECTIONS),1)
else
Expand All @@ -358,8 +358,8 @@ LDFLAGS += -Wl,--gc-sections
endif
else
ifeq ($(OPTIMIZE),1)
CXXFLAGS += -O3 -ffast-math
CFLAGS += -O3 -ffast-math -fno-strict-aliasing
CXXFLAGS += -O3
CFLAGS += -O3 -fno-strict-aliasing
endif
endif
endif
Expand Down

0 comments on commit c53b392

Please sign in to comment.