[clang] fdfe0b0 - Fix test clang/test/Driver/cl-offload.cu

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 19 09:56:27 PDT 2023


Author: Yaxun (Sam) Liu
Date: 2023-10-19T12:56:06-04:00
New Revision: fdfe0b095f629a59a361813231fb5a6de4ef7ef9

URL: https://github.com/llvm/llvm-project/commit/fdfe0b095f629a59a361813231fb5a6de4ef7ef9
DIFF: https://github.com/llvm/llvm-project/commit/fdfe0b095f629a59a361813231fb5a6de4ef7ef9.diff

LOG: Fix test clang/test/Driver/cl-offload.cu

Regression caused by e880e8aedbc17ba04c969c9426d1f2567af72e7b

Due to aux-target mismatch. Add -target option to fix aux-target.

https://lab.llvm.org/buildbot/#/builders/230/builds/20138

Added: 
    

Modified: 
    clang/test/Driver/cl-offload.cu

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/cl-offload.cu b/clang/test/Driver/cl-offload.cu
index aa5c096338110b0..c3bc5a2c08275e0 100644
--- a/clang/test/Driver/cl-offload.cu
+++ b/clang/test/Driver/cl-offload.cu
@@ -1,9 +1,9 @@
-// RUN: %clang_cl -### --offload-arch=sm_35 -fgpu-rdc \
+// RUN: %clang_cl -### -target x86_64-pc-windows-msvc --offload-arch=sm_35 -fgpu-rdc \
 // RUN:   --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
 // RUN:   /Wall -x cuda %s 2>&1 \
 // RUN:   | FileCheck %s -check-prefix=CUDA
 
-// RUN: %clang_cl -### --offload-arch=gfx1010 -fgpu-rdc --hip-link \
+// RUN: %clang_cl -### -target x86_64-pc-windows-msvc --offload-arch=gfx1010 -fgpu-rdc --hip-link \
 // RUN:   --rocm-path=%S/Inputs/rocm /Wall -x hip %s 2>&1 \
 // RUN:   | FileCheck %s -check-prefix=HIP
 


        


More information about the cfe-commits mailing list