clang tool chain support

This thread has been locked. Questions are automatically locked after two months of inactivity, or sooner if deemed necessary by a moderator.
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.

Up vote post of nan2
207 views

Replies

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