]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cmake: pass -DINTEL* to gf-complete cflags 10956/head
authorKefu Chai <kchai@redhat.com>
Fri, 2 Sep 2016 06:38:21 +0000 (14:38 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 2 Sep 2016 08:23:54 +0000 (16:23 +0800)
commit367755e7f76786b934420517c2150892eceeb4a8
treec4e8c90c8bc94328d5afa51b99ed6fb30d44a144
parenta80af03fbfb49a041f5905c30a285ca006426e3f
cmake: pass -DINTEL* to gf-complete cflags

* in addition to the -march=foobar, we also need to pass -DFOOBAR to
  gf-complete sources' cflags, so that the SIMD instructions can be
  generated as expected.
* also extract the compiler support for instruction extensions detections
  into SIMDExt.cmake.
* and only check the compiler support if CMAKE_SYSTEM_PROCESSOR matches
  with the instruction-set/arch to be checked.

Signed-off-by: tone.zhang <tone.zhang@linaro.org>
Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/SIMDExt.cmake [new file with mode: 0644]
src/CMakeLists.txt
src/erasure-code/CMakeLists.txt
src/test/CMakeLists.txt