From: Kefu Chai Date: Wed, 13 Sep 2017 03:23:21 +0000 (+0800) Subject: cmake: disable plugins using isa-l on osx X-Git-Tag: v13.0.1~880^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=629ad1986d47ba0ee28cbeb39bd30c8bb90c38ea;p=ceph.git cmake: disable plugins using isa-l on osx clang on osx emits functions with leading underscore, but the isa-l assembly's functions have no leading underscore. we could label the function declaration like `int foo asm("foo")` to remove the leading underscore, but isa-l is a git submodule, let do this later. and in the meanwhile, disable this plugin on osx. Signed-off-by: Kefu Chai --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 62e76c6e15d6..510bd173d237 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -917,9 +917,9 @@ if(WITH_TESTS AND WITH_DMCLOCK_TESTS) add_subdirectory(dmclock/support/test) endif(WITH_TESTS AND WITH_DMCLOCK_TESTS) -if(HAVE_INTEL AND HAVE_BETTER_YASM_ELF64) +if(HAVE_INTEL AND HAVE_BETTER_YASM_ELF64 AND (NOT APPLE)) add_subdirectory(crypto/isa-l) -endif(HAVE_INTEL AND HAVE_BETTER_YASM_ELF64) +endif() if(WITH_TESTS) diff --git a/src/compressor/zlib/CMakeLists.txt b/src/compressor/zlib/CMakeLists.txt index 1b3bc259a351..78bf67c5984f 100644 --- a/src/compressor/zlib/CMakeLists.txt +++ b/src/compressor/zlib/CMakeLists.txt @@ -1,6 +1,6 @@ # zlib -if(HAVE_INTEL_SSE4_1 AND HAVE_BETTER_YASM_ELF64) +if(HAVE_INTEL_SSE4_1 AND HAVE_BETTER_YASM_ELF64 AND (NOT APPLE)) set(zlib_sources CompressionPluginZlib.cc ZlibCompressor.cc @@ -30,12 +30,12 @@ if(HAVE_INTEL_SSE4_1 AND HAVE_BETTER_YASM_ELF64) ${CMAKE_SOURCE_DIR}/src/isa-l/igzip/proc_heap.asm ${CMAKE_SOURCE_DIR}/src/isa-l/igzip/rfc1951_lookup.asm ) -else(HAVE_INTEL_SSE4_1 AND HAVE_BETTER_YASM_ELF64) +else(HAVE_INTEL_SSE4_1 AND HAVE_BETTER_YASM_ELF64 AND (NOT APPLE)) set(zlib_sources CompressionPluginZlib.cc ZlibCompressor.cc ) -endif(HAVE_INTEL_SSE4_1 AND HAVE_BETTER_YASM_ELF64) +endif(HAVE_INTEL_SSE4_1 AND HAVE_BETTER_YASM_ELF64 AND (NOT APPLE)) add_library(ceph_zlib SHARED ${zlib_sources}) add_dependencies(ceph_zlib ${CMAKE_SOURCE_DIR}/src/ceph_ver.h)