Author: Fangrui Song Date: 2024-01-24T12:32:10-08:00 New Revision: 48570a6feb62c897dc4cdcd1dab3e99a0aa46d48
URL: https://github.com/llvm/llvm-project/commit/48570a6feb62c897dc4cdcd1dab3e99a0aa46d48 DIFF: https://github.com/llvm/llvm-project/commit/48570a6feb62c897dc4cdcd1dab3e99a0aa46d48.diff LOG: [Driver,test] Add --target= to unsupported-option-gpu.c Added: Modified: clang/test/Driver/unsupported-option-gpu.c Removed: ################################################################################ diff --git a/clang/test/Driver/unsupported-option-gpu.c b/clang/test/Driver/unsupported-option-gpu.c index 225f3be7c76242c..f23cb71ebfb08ef 100644 --- a/clang/test/Driver/unsupported-option-gpu.c +++ b/clang/test/Driver/unsupported-option-gpu.c @@ -1,5 +1,5 @@ /// Some target-specific options are ignored for GPU, so %clang exits with code 0. -// DEFINE: %{check} = %clang -### -c -mcmodel=medium +// DEFINE: %{check} = %clang -### --target=x86_64-linux-gnu -c -mcmodel=medium // RUN: %{check} -x cuda %s --cuda-path=%S/Inputs/CUDA/usr/local/cuda --offload-arch=sm_60 --no-cuda-version-check -fbasic-block-sections=all // RUN: %{check} -x hip %s --rocm-path=%S/Inputs/rocm -nogpulib -nogpuinc _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits