Open YWtheGod opened 2 months ago
I hit the same problem following the instructions at https://clang.llvm.org/docs/AddressSanitizer.html#how-to-build.
However if instead I use -DLLVM_ENABLE_PROJECTS="clang;compiler-rt"
and drop the -DLLVM_ENABLE_RUNTIMES
argument, I'm able to build asan without issue. So perhaps this is just a documentation issue?
VS 2022 17.11.2+WINDOWS 11 23H2
CMAKE Command Line:
when configuring compiler-rt, exception raised:
-- Compiler-RT supported architectures: x86_64 -- check-shadowcallstack does nothing. -- Configuring done (4.5s) CMake Error at CMakeLists.txt:269 (add_dependencies): The dependency target "asan" of target "runtimes-test-depends" does not exist.
CMake Error at CMakeLists.txt:269 (add_dependencies): The dependency target "ubsan" of target "runtimes-test-depends" does not exist.