Skip to content

Commit

Permalink
Merged revision(s) 22445 from branches/OpenMPT-1.29:
Browse files Browse the repository at this point in the history
[Mod] build: Makefile: Remove -ffast-math in order to avoid warnings with modern Clang. See r15720.
........


git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.28@22446 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Dec 2, 2024
1 parent a474938 commit acbb004
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 @@ -346,8 +346,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 @@ -357,8 +357,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 acbb004

Please sign in to comment.