clang tool chain support

Does Xcode clang 12 support address sanitizer for arm64 CPU?
when we pass -fsanitize=address to both compilation and linker (clang), the library is not linked, got bunch undefined symbols of *asan*.

What is the library name for arm64 if supported?

on my MAC, under
 /Users/<usrname>/tools/xcode_installs/xcode_Azul18A373_YellowstoneE11E146/Xcode.app/Contents/Developer/Toolchains/iOS14.0.xctoolchain/usr/lib/clang/12.0.0/lib/darwin/

I see these:
ls *asan*
 libclang_rt.asan_ios_dynamic.dylib
 libclang_rt.asan_iossim_dynamic.dylib
 libclang_rt.asan_osx_dynamic.dylib

None seems for arm64.

We are using command line to do build, not the xcode gui.

Pass -enableAddressSanitizer YES to your xcodebuild command.
Thanks! Found out the Asan RT lib is not available for our arm46 target using embeded OS
clang tool chain support
 
 
Q