Commit 85194bd6 authored by Sergei Golubchik's avatar Sergei Golubchik

fix detection of "-Wa,-nH" compiler flags on SunOS/i386

parent e7cbb2af
...@@ -33,6 +33,8 @@ MYSQL_CHECK_BZIP2() ...@@ -33,6 +33,8 @@ MYSQL_CHECK_BZIP2()
MYSQL_CHECK_SNAPPY() MYSQL_CHECK_SNAPPY()
MYSQL_CHECK_NUMA() MYSQL_CHECK_NUMA()
INCLUDE(${MYSQL_CMAKE_SCRIPT_DIR}/compile_flags.cmake)
IF(CMAKE_CROSSCOMPILING) IF(CMAKE_CROSSCOMPILING)
# Use CHECK_C_SOURCE_COMPILES instead of CHECK_C_SOURCE_RUNS when # Use CHECK_C_SOURCE_COMPILES instead of CHECK_C_SOURCE_RUNS when
# cross-compiling. Not as precise, but usually good enough. # cross-compiling. Not as precise, but usually good enough.
...@@ -241,9 +243,8 @@ ENDIF() ...@@ -241,9 +243,8 @@ ENDIF()
# Avoid generating Hardware Capabilities due to crc32 instructions # Avoid generating Hardware Capabilities due to crc32 instructions
IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND CMAKE_SYSTEM_PROCESSOR MATCHES "i386") IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND CMAKE_SYSTEM_PROCESSOR MATCHES "i386")
INCLUDE(${MYSQL_CMAKE_SCRIPT_DIR}/compile_flags.cmake) MY_CHECK_CXX_COMPILER_FLAG("-Wa,-nH")
MY_CHECK_CXX_COMPILER_FLAG("-Wa,-nH" HAVE_WA_NH) IF(have_CXX__Wa__nH)
IF(HAVE_WA_NH)
ADD_COMPILE_FLAGS( ADD_COMPILE_FLAGS(
ut/ut0crc32.cc ut/ut0crc32.cc
COMPILE_FLAGS "-Wa,-nH" COMPILE_FLAGS "-Wa,-nH"
......
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