llvm-project/clang/test/Driver/XRay/xray-nolinkdeps.cpp
Fangrui Song 841ff7c6ca [Driver][test] Clean up some xray tests
Add explicit --target= so that the tests run on all targets, not some
that support XRay, similar to commit e1051414a16e970c2e36c2ab7dfe2b17353c4751.
For option testing, we often use a placeholder architecture (e.g., x86_64).

Fix https://github.com/llvm/llvm-project/issues/64028
2023-07-24 10:05:34 -07:00

9 lines
551 B
C++

// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fxray-instrument -fxray-link-deps -fno-xray-link-deps %s \
// RUN: 2>&1 | FileCheck --check-prefix DISABLE %s
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fxray-instrument %s \
// RUN: 2>&1 | FileCheck --check-prefix ENABLE %s
// RUN: %clang -### --target=x86_64-unknown-linux-gnu -shared -fxray-instrument %s \
// RUN: 2>&1 | FileCheck --check-prefix DISABLE %s
// ENABLE: "--whole-archive" "{{.*}}clang_rt.xray{{.*}}"--no-whole-archive"
// DISABLE-NOT: clang_rt.xray