From d4555ff53d5e6298f4578ccee90534c5d614cf41 Mon Sep 17 00:00:00 2001 From: Maksim Levental Date: Fri, 27 Sep 2024 23:20:04 -0400 Subject: [PATCH] Update build_test_cpp.sh --- build_tools/build_test_cpp.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build_tools/build_test_cpp.sh b/build_tools/build_test_cpp.sh index 0ad04c0ac..906e4d33a 100644 --- a/build_tools/build_test_cpp.sh +++ b/build_tools/build_test_cpp.sh @@ -86,7 +86,10 @@ san="${san:-}" if [ "$san" != "" ];then sed -i 's/add_subdirectory(tests EXCLUDE_FROM_ALL)//g' CMakeLists.txt - CMAKE_ARGS="$CMAKE_ARGS -DIREE_ENABLE_$san=ON" + sed -i 's/NOT _IREE_COMPILER_TARGETING_THIS_ARCH/1/g' build_tools/cmake/iree_bitcode_library.cmake + sed -i 's/iree::tooling::testdata::npy//g' runtime/src/iree/tooling/CMakeLists.txt + sed -i 's/iree_add_all_subdirs()//g' runtime/src/iree/tooling/testdata/CMakeLists.txt + CMAKE_ARGS="$CMAKE_ARGS -DIREE_ENABLE_$san=ON -DHAVE_STD_REGEX=ON" fi if [ -d "${llvm_install_dir}" ]; then