[LinkerWrapper] Fix test on Windows
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 13 Jan 2023 01:56:24 +0000 (19:56 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 13 Jan 2023 01:57:34 +0000 (19:57 -0600)
Summary:
`clang` is called `clang.exe` on windows, we need to glob the text
inbetween.

clang/test/Driver/linker-wrapper.c

index 08ccadd..1d984e4 100644 (file)
@@ -58,7 +58,7 @@
 // RUN: clang-linker-wrapper --host-triple=x86_64-unknown-linux-gnu --dry-run --save-temps -O2 \
 // RUN:   --linker-path=/usr/bin/ld -- %t.o -o a.out 2>&1 | FileCheck %s --check-prefix=AMDGPU-LTO-TEMPS
 
-// AMDGPU-LTO-TEMPS: clang-o [[OBJ:.+]] -fPIC -c --target=amdgcn-amd-amdhsa -O2 -mcpu=gfx1030 {{.*}}.s
+// AMDGPU-LTO-TEMPS: clang{{.*}}-o [[OBJ:.+]] -fPIC -c --target=amdgcn-amd-amdhsa -O2 -mcpu=gfx1030 {{.*}}.s
 // AMDGPU-LTO-TEMPS: lld{{.*}}-flavor gnu --no-undefined -shared -plugin-opt=-amdgpu-internalize-symbols -plugin-opt=mcpu=gfx1030 -o {{.*}}.img {{.*}}.o
 
 // RUN: clang-offload-packager -o %t.out \