]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: pass RULE_LAUNCHER_* to cython
authorKefu Chai <kchai@redhat.com>
Sun, 10 Apr 2016 14:37:59 +0000 (22:37 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 10 Apr 2016 16:46:31 +0000 (00:46 +0800)
commit30ce32a67d9a2008da6610e4b7739e94b233d0d8
treec0b9c65a0e65c3c5d43f3e361a61e6b3a9805d88
parent871cd5a9b9112ba5553c7e343cbdefebf173f439
cmake: pass RULE_LAUNCHER_* to cython

* pass the environment variables using `env` to pass environment
  varibles with space(s) in them to the COMMAND in add_custom_target.
  otherwise, cmake will try to quote the space with "\". this breaks the
  generated command line.
* add a comment for ccache to note that we do not expect ccache to speed
  up linking. we use it as the linker's launcher to workaround
  https://bugs.python.org/issue8027. to be specific,
  distutils.UnixCCompiler.link overwrites the first linker CLI's arg
  using the the first C++ compiler's CLI arg, if "env" is not used to
  launch the linker. this breaks the cythonization of our pybind APIs.

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt
src/pybind/CMakeLists.txt
src/pybind/cephfs/CMakeLists.txt
src/pybind/rados/CMakeLists.txt
src/pybind/rbd/CMakeLists.txt