We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eda827a + bc53022 commit f521e21Copy full SHA for f521e21
2 files changed
CMakeLists.txt
@@ -232,6 +232,11 @@ target_include_directories(
232
${CMAKE_CURRENT_SOURCE_DIR}/src/generated
233
)
234
235
+# Optimize floating point math functions into intrinsics and don't check or set errno (i.e. sqrt(-1))
236
+if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
237
+ target_compile_options(lcf PUBLIC "-fno-math-errno")
238
+endif()
239
+
240
# endianess checking
241
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
242
include(TestBigEndian)
Makefile.am
@@ -22,6 +22,7 @@ liblcf_la_CPPFLAGS = \
22
-I$(srcdir)/src/generated
23
liblcf_la_CXXFLAGS = \
24
-std=c++14 \
25
+ -fno-math-errno \
26
$(AM_CXXFLAGS) \
27
$(EXPAT_CFLAGS) \
28
$(ICU_CFLAGS)
0 commit comments