summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-12-30 21:40:40 +0100
committerworktycho <work.tycho@gmail.com>2015-12-30 21:40:40 +0100
commit2b38b4e66ee0a0d36e234139b10c658e959a8cc5 (patch)
treea72320384ee52a6da28ef719ed3e8de980d9b1c3 /SetFlags.cmake
parentMerge pull request #2836 from cuberite/FixDefaultWorldGenParams (diff)
parentClang-3.8: Added ignore flag for double promotion (diff)
downloadcuberite-2b38b4e66ee0a0d36e234139b10c658e959a8cc5.tar
cuberite-2b38b4e66ee0a0d36e234139b10c658e959a8cc5.tar.gz
cuberite-2b38b4e66ee0a0d36e234139b10c658e959a8cc5.tar.bz2
cuberite-2b38b4e66ee0a0d36e234139b10c658e959a8cc5.tar.lz
cuberite-2b38b4e66ee0a0d36e234139b10c658e959a8cc5.tar.xz
cuberite-2b38b4e66ee0a0d36e234139b10c658e959a8cc5.tar.zst
cuberite-2b38b4e66ee0a0d36e234139b10c658e959a8cc5.zip
Diffstat (limited to '')
-rw-r--r--SetFlags.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index d3a6aba86..206a1da8e 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -288,6 +288,12 @@ macro(set_exe_flags)
if ("${CLANG_VERSION}" VERSION_GREATER 3.5)
add_flags_cxx("-Wno-error=disabled-macro-expansion")
endif()
+ if ("${CLANG_VERSION}" VERSION_GREATER 3.7)
+ check_cxx_compiler_flag(-Wno-double-promotion HAS_NO_DOUBLE_PROMOTION)
+ if (HAS_NO_DOUBLE_PROMOTION)
+ add_flags_cxx("-Wno-double-promotion")
+ endif()
+ endif()
add_flags_cxx("-Wno-error=unused-command-line-argument")
endif()
endif()