【问题标题】:Installing Memory Sanitizer and Leak Sanitizer into clang compiler将 Memory Sanitizer 和 Leak Sanitizer 安装到 clang 编译器中
【发布时间】:2022-10-25 21:06:30
【问题描述】:

我已经从 Home-brew 下载了 LLVM,但在检查 C 中的内存问题时仍然无法使用 -fsanitize=memory。我收到以下错误:clang: error: unsupported option '-fsanitize=memory' for target 'arm64-apple-darwin21.2.0'。为了在 M1 Mac Pro 上使用 Memory Sanitizer 和 Leak Sanitizer,我需要做什么? (macOS 蒙特雷)

【问题讨论】:

    标签: c memory-management memory-leaks


    【解决方案1】:

    以下操作系统支持 MemorySanitizer: Linux NetBSD 自由BSD

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-02
      • 2015-11-16
      • 2014-01-28
      • 2012-08-02
      相关资源
      最近更新 更多