mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-19 16:00:56 +00:00
Disable floating-point expression contraction on gcc builds.
While this shouldn't be a problem with C code, better be safe than sorry. @DanielGibson stumbled over this while debugging some strange RB-Doom3 / dhewm3 issues with gcc. See this bug report for details: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100839
This commit is contained in:
parent
228c6060f3
commit
bb7bf8ef9e
1 changed files with 7 additions and 0 deletions
7
Makefile
7
Makefile
|
@ -235,6 +235,13 @@ ifeq ($(YQ2_ARCH), x86_64)
|
|||
override CFLAGS += -mfpmath=sse
|
||||
endif
|
||||
|
||||
# Disable floating-point expression contraction. While this shouldn't be
|
||||
# a problem for C (only for C++) better be safe than sorry. See
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100839 for details.
|
||||
ifeq ($(COMPILER), gcc)
|
||||
override CFLAGS += -ffp-contract=off
|
||||
endif
|
||||
|
||||
# ----------
|
||||
|
||||
# Systemwide installation.
|
||||
|
|
Loading…
Reference in a new issue