We need to build with -fPIC due to the Python .so we want to build, even if building not for CUDA.
Use ${FLAGS} instead of ${COMPILE_FLAGS} for the linking step (otherwise the useless-in-context -x cpp is provided and clang actually validly complains about it being useless).
We need to build with
-fPIC
due to the Python .so we want to build, even if building not for CUDA.Use ${FLAGS} instead of ${COMPILE_FLAGS} for the linking step (otherwise the useless-in-context
-x cpp
is provided and clang actually validly complains about it being useless).