From 50209329befabf11ddfbca36e747881c19131453 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Wed, 17 Mar 2021 00:10:11 +0100 Subject: [PATCH] Restored fast-math compiler option Signed-off-by: Alexander Borsuk --- CMakeLists.txt | 3 +++ xcode/common.xcconfig | 1 + 2 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 631855ee94..6ed2f46fb5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,9 @@ if (NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") endif() +# Global compile options for all configurations. +add_compile_options(-ffast-math) + if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") add_definitions(-DDEBUG) elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") diff --git a/xcode/common.xcconfig b/xcode/common.xcconfig index 4d39305d96..f82dcc9f69 100644 --- a/xcode/common.xcconfig +++ b/xcode/common.xcconfig @@ -69,6 +69,7 @@ DEBUG_INFORMATION_FORMAT = dwarf ENABLE_BITCODE = YES ENABLE_STRICT_OBJC_MSGSEND = YES GCC_C_LANGUAGE_STANDARD = c11 +GCC_FAST_MATH = YES GCC_NO_COMMON_BLOCKS = YES GCC_PRECOMPILE_PREFIX_HEADER = YES // Preprocessor definitions shared in all configurations and projects.