summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-03-07 17:55:45 +0100
committerworktycho <work.tycho@gmail.com>2014-03-07 17:55:45 +0100
commitfac56bb935de5a808b197ccc4a886f262d94dc99 (patch)
tree814f953f854ac1c1d9f89bb39ae676e845dc3e76
parentMerge pull request #735 from xdot/master (diff)
downloadcuberite-fac56bb935de5a808b197ccc4a886f262d94dc99.tar
cuberite-fac56bb935de5a808b197ccc4a886f262d94dc99.tar.gz
cuberite-fac56bb935de5a808b197ccc4a886f262d94dc99.tar.bz2
cuberite-fac56bb935de5a808b197ccc4a886f262d94dc99.tar.lz
cuberite-fac56bb935de5a808b197ccc4a886f262d94dc99.tar.xz
cuberite-fac56bb935de5a808b197ccc4a886f262d94dc99.tar.zst
cuberite-fac56bb935de5a808b197ccc4a886f262d94dc99.zip
-rw-r--r--SetFlags.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index ded57e6d7..6e86ac0aa 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -1,5 +1,4 @@
-
macro (add_flags_lnk FLAGS)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} ${FLAGS}")
@@ -50,6 +49,9 @@ macro(set_flags)
else()
add_flags_cxx("-pthread")
endif()
+
+ #we support non-IEEE 754 fpus so can make no guarentees about error
+ add_flags_cxx("-ffast-math")
else()
# Let gcc / clang know that we're compiling a multi-threaded app:
@@ -62,6 +64,9 @@ macro(set_flags)
# We use a signed char (fixes #640 on RasPi)
add_flags_cxx("-fsigned-char")
+
+ #we support non-IEEE 754 fpus so can make no guarentees about error
+ add_flags_cxx("-ffast-math")
endif()