[clang] 77d81d5 - [LinkerWrapper] Fix test on Windows
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 12 17:57:42 PST 2023
Author: Joseph Huber
Date: 2023-01-12T19:57:34-06:00
New Revision: 77d81d593cb93d275794edf66caf0daa8d102d5f
URL: https://github.com/llvm/llvm-project/commit/77d81d593cb93d275794edf66caf0daa8d102d5f
DIFF: https://github.com/llvm/llvm-project/commit/77d81d593cb93d275794edf66caf0daa8d102d5f.diff
LOG: [LinkerWrapper] Fix test on Windows
Summary:
`clang` is called `clang.exe` on windows, we need to glob the text
inbetween.
Added:
Modified:
clang/test/Driver/linker-wrapper.c
Removed:
################################################################################
diff --git a/clang/test/Driver/linker-wrapper.c b/clang/test/Driver/linker-wrapper.c
index 08ccadd2d72b8..1d984e49b7ffe 100644
--- a/clang/test/Driver/linker-wrapper.c
+++ b/clang/test/Driver/linker-wrapper.c
@@ -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 \
More information about the cfe-commits
mailing list