9 lines · cpp
1// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fxray-instrument -fxray-link-deps -fno-xray-link-deps %s \2// RUN: 2>&1 | FileCheck --check-prefix DISABLE %s3// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fxray-instrument %s \4// RUN: 2>&1 | FileCheck --check-prefix ENABLE %s5// RUN: %clang -### --target=x86_64-unknown-linux-gnu -shared -fxray-instrument %s \6// RUN: 2>&1 | FileCheck --check-prefix DISABLE %s7// ENABLE: "--whole-archive" "{{.*}}clang_rt.xray{{.*}}"--no-whole-archive"8// DISABLE-NOT: clang_rt.xray9