|
Lines 1-11
Link Here
|
| 1 |
--- source/darkplaces/makefile.inc.orig 2022-06-27 17:32:38 UTC |
1 |
--- source/darkplaces/makefile.inc.orig |
| 2 |
+++ source/darkplaces/makefile.inc |
2 |
+++ source/darkplaces/makefile.inc |
| 3 |
@@ -194,7 +194,7 @@ OPTIM_DEBUG=$(CPUOPTIMIZATIONS) |
3 |
@@ -197,7 +197,7 @@ |
| 4 |
#OPTIM_RELEASE=-O2 -fno-strict-aliasing -fno-math-errno -fno-trapping-math -fno-signaling-nans -fcx-limited-range -funroll-loops $(CPUOPTIMIZATIONS) |
|
|
| 5 |
#OPTIM_RELEASE=-O2 -fno-strict-aliasing -funroll-loops $(CPUOPTIMIZATIONS) |
4 |
#OPTIM_RELEASE=-O2 -fno-strict-aliasing -funroll-loops $(CPUOPTIMIZATIONS) |
| 6 |
#OPTIM_RELEASE=-O2 -fno-strict-aliasing $(CPUOPTIMIZATIONS) |
5 |
#OPTIM_RELEASE=-O2 -fno-strict-aliasing $(CPUOPTIMIZATIONS) |
| 7 |
-OPTIM_RELEASE=-O3 -fno-strict-aliasing $(CPUOPTIMIZATIONS) |
6 |
#OPTIM_RELEASE=-O3 -fno-strict-aliasing $(CPUOPTIMIZATIONS) |
| 8 |
+OPTIM_RELEASE=${CFLAGS} -fno-strict-aliasing $(CPUOPTIMIZATIONS) |
7 |
-OPTIM_RELEASE=-O3 -fno-strict-aliasing -fno-math-errno -fno-trapping-math $(CPUOPTIMIZATIONS) |
|
|
8 |
+OPTIM_RELEASE=$(CFLAGS) -O3 -fno-strict-aliasing -fno-math-errno -fno-trapping-math $(CPUOPTIMIZATIONS) |
| 9 |
# NOTE: *never* *ever* use the -ffast-math or -funsafe-math-optimizations flag |
9 |
# NOTE: *never* *ever* use the -ffast-math or -funsafe-math-optimizations flag |
| 10 |
# Also, since gcc 5, -ffinite-math-only makes NaN and zero compare equal inside engine code but not inside QC, which causes error spam for seemingly valid QC code like if (x != 0) return 1 / x; |
10 |
# Also, since gcc 5, -ffinite-math-only makes NaN and zero compare equal inside engine code but not inside QC, which causes error spam for seemingly valid QC code like if (x != 0) return 1 / x; |
| 11 |
|
11 |
|
| 12 |
- |
|
|