同意Apple新服务条款后,clang++用-fsanitize=address报错求助
AddressSanitizer编译报错:static AddressSanitizer runtime is not supported on darwin
之前使用clang++编译程序时,一直通过添加-fsanitize=address参数来定位问题代码的行号。但在2024年9月18日通过命令行同意Apple新服务条款后,再使用该参数编译时触发如下错误:
clang++: error: static AddressSanitizer runtime is not supported on darwin
目前网上能找到的相关问题均为旧版本适配问题,希望了解此次报错的新原因,恳请解答。
环境信息
- macOS版本:14.6.1 (23G93)
- clang版本:
Apple clang version 16.0.0 (clang-1600.0.26.3) Target: arm64-apple-darwin23.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
内容的提问来源于stack exchange,提问作者Seth
相关产品推荐
相关产品推荐

