Forward some more CMake variables to host builds. (#3690)
* Forward some more CMake variables to host builds.
This makes it so that these variables (which control sanitizers, use of
ccache, and cmake verbosity) apply also to the host build, not just to
the target build.
* address Scott's review comment
diff --git a/build_tools/cmake/iree_cross_compile.cmake b/build_tools/cmake/iree_cross_compile.cmake
index b8c1fde..3cfa1e9 100644
--- a/build_tools/cmake/iree_cross_compile.cmake
+++ b/build_tools/cmake/iree_cross_compile.cmake
@@ -124,6 +124,12 @@
# )
-DIREE_HAL_DRIVERS_TO_BUILD="${_CONFIG_HAL_DRIVERS_TO_BUILD}"
-DIREE_TARGET_BACKENDS_TO_BUILD="${_CONFIG_TARGET_BACKENDS_TO_BUILD}"
+ -DIREE_ENABLE_ASAN=${IREE_ENABLE_ASAN}
+ -DIREE_ENABLE_MSAN=${IREE_ENABLE_MSAN}
+ -DIREE_ENABLE_TSAN=${IREE_ENABLE_TSAN}
+ -DIREE_ENABLE_CCACHE=${IREE_ENABLE_CCACHE}
+ -DLLVM_CCACHE_BUILD=${LLVM_CCACHE_BUILD}
+ -DCMAKE_VERBOSE_MAKEFILE=${CMAKE_VERBOSE_MAKEFILE}
WORKING_DIRECTORY ${_CONFIG_BINARY_ROOT}
DEPENDS iree_prepare_${CONFIG_NAME}_dir
COMMENT "Configuring IREE for ${CONFIG_NAME} build...")