Commit 4e3aa725 authored by Rich Prohaska's avatar Rich Prohaska

refs #64 fix clang on linux problems

parent e36ddbd5
...@@ -87,6 +87,7 @@ set_cflags_if_supported( ...@@ -87,6 +87,7 @@ set_cflags_if_supported(
-Wmissing-format-attribute -Wmissing-format-attribute
-Wno-error=missing-format-attribute -Wno-error=missing-format-attribute
-Wno-error=address-of-array-temporary -Wno-error=address-of-array-temporary
-Wno-error=tautological-constant-out-of-range-compare
-fno-rtti -fno-rtti
-fno-exceptions -fno-exceptions
) )
...@@ -128,7 +129,7 @@ set(CMAKE_CXX_FLAGS_DRD "-g3 -O1 ${CMAKE_CXX_FLAGS_DRD}") ...@@ -128,7 +129,7 @@ set(CMAKE_CXX_FLAGS_DRD "-g3 -O1 ${CMAKE_CXX_FLAGS_DRD}")
## set extra release flags ## set extra release flags
## need to set flags for RelWithDebInfo as well because we want the MySQL/MariaDB builds to use them ## need to set flags for RelWithDebInfo as well because we want the MySQL/MariaDB builds to use them
if (APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL Clang) if (CMAKE_CXX_COMPILER_ID STREQUAL Clang)
# have tried -flto and -O4, both make our statically linked executables break apple's linker # have tried -flto and -O4, both make our statically linked executables break apple's linker
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -g -O3 -UNDEBUG") set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -g -O3 -UNDEBUG")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -g -O3 -UNDEBUG") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -g -O3 -UNDEBUG")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment