Author: Haowei Date: 2026-06-18T00:08:07-07:00 New Revision: 004f829fd0c5ecfebc7bfd05107160c97027d1e9
URL: https://github.com/llvm/llvm-project/commit/004f829fd0c5ecfebc7bfd05107160c97027d1e9 DIFF: https://github.com/llvm/llvm-project/commit/004f829fd0c5ecfebc7bfd05107160c97027d1e9.diff LOG: [clang][cmake] Disable exceptions for ASan runtime on Fuchsia (#204512) Fuchsia's default runtime environment prefers no-exceptions. Compiling the C++ slice of ASan (asan_new_delete.cpp) with exceptions introduces dependencies on EH symbols (__cxa_begin_catch, etc.) in libclang_rt.asan.so. This causes link failures when linking ASan-enabled binaries with noexcept libc++abi. Explicitly disable COMPILER_RT_ASAN_ENABLE_EXCEPTIONS for Fuchsia targets in the stage2 cache. Added: Modified: clang/cmake/caches/Fuchsia-stage2.cmake Removed: ################################################################################ diff --git a/clang/cmake/caches/Fuchsia-stage2.cmake b/clang/cmake/caches/Fuchsia-stage2.cmake index 31067bcc31c22..e4d7a1c9f63ab 100644 --- a/clang/cmake/caches/Fuchsia-stage2.cmake +++ b/clang/cmake/caches/Fuchsia-stage2.cmake @@ -240,6 +240,7 @@ if(FUCHSIA_SDK) set(RUNTIMES_${target}_COMPILER_RT_CXX_LIBRARY "libcxx" CACHE STRING "") set(RUNTIMES_${target}_COMPILER_RT_USE_BUILTINS_LIBRARY ON CACHE BOOL "") set(RUNTIMES_${target}_COMPILER_RT_USE_LLVM_UNWINDER ON CACHE BOOL "") + set(RUNTIMES_${target}_COMPILER_RT_ASAN_ENABLE_EXCEPTIONS OFF CACHE BOOL "") set(RUNTIMES_${target}_LIBUNWIND_USE_COMPILER_RT ON CACHE BOOL "") set(RUNTIMES_${target}_LIBUNWIND_HIDE_SYMBOLS ON CACHE BOOL "") set(RUNTIMES_${target}_LIBCXXABI_USE_COMPILER_RT ON CACHE BOOL "") _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
