clang编译器不支持aarch64-apple-darwin上的-fxray-instrument

问题描述 投票:0回答:1

我正在尝试测试llvm-xray,但似乎无法按照其文档进行操作。 https://llvm.org/docs/XRay.html

$ clang++  test.cpp -arch arm64   -O2  -fxray-instrument -fxray-instruction-threshold=10
clang: error: the clang compiler does not support '-fxray-instrument on aarch64-apple-darwin19.4.0

我是否缺少标志,或者arm64不支持X射线

c++ llvm instrumentation
1个回答
0
投票

从您链接的页面开始,重点是我的:

截至2018年7月25日,XRay仅可用于以下体系结构正在运行Linux:x86_64,arm7(无拇指),aarch64,powerpc64le,mips,mipsel,mips64,mips64el,NetBSD:x86_64,FreeBSD: x86_64和OpenBSD:x86_64。

因此它确实支持arm64,但不支持Darwin,仅支持Linux。

© www.soinside.com 2019 - 2024. All rights reserved.