Skip to content

Commit 9c73925

Browse files
committed
[lldb/lit] Introduce %clang_host substitutions
Summary: This patch addresses an ambiguity in how our existing tests invoke the compiler. Roughly two thirds of our current "shell" tests invoke the compiler to build the executables for the host. However, there is also a significant number of tests which don't build a host binary (because they don't need to run it) and instead they hardcode a certain target. We also have code which adds a bunch of default arguments to the %clang substitutions. However, most of these arguments only really make sense for the host compilation. So far, this has worked mostly ok, because the arguments we were adding were not conflicting with the target-hardcoding tests (though they did provoke an occasional "argument unused" warning). However, this started to break down when we wanted to use target-hardcoding clang-cl tests (D69031) because clang-cl has a substantially different command line, and it was getting very confused by some of the arguments we were adding on non-windows hosts. This patch avoid this problem by creating separate %clang(xx,_cl)_host substutitions, which are specifically meant to be used for compiling host binaries. All funny host-specific options are moved there. To ensure that the regular %clang substitutions are not used for compiling host binaries (skipping the extra arguments) I employ a little hac^H^H^Htrick -- I add an invalid --target argument to the %clang substitution, which means that one has to use an explicit --target in order for the compilation to succeed. Reviewers: JDevlieghere, aprantl, mstorsjo, espindola Subscribers: emaste, arichardson, MaskRay, jfb, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D69619
1 parent a7aee6c commit 9c73925

File tree

60 files changed

+75
-69
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+75
-69
lines changed

lldb/test/Shell/Commands/command-script-import.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# RUN: echo 'run' >> %t.in
44
# RUN: echo 'command script import %S/Inputs/frame.py' >> %t.in
55

6-
# RUN: %clang -g -O0 %S/Inputs/main.c -o %t.out
6+
# RUN: %clang_host -g -O0 %S/Inputs/main.c -o %t.out
77
# RUN: %lldb -b -s %t.in -o 'script print("script: {}".format(lldb.frame))' %t.out | FileCheck %s
88

99
# Make sure that we don't have access to lldb.frame from the Python script.

lldb/test/Shell/Driver/TestSingleQuote.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Make sure lldb can handle filenames with single quotes in them.
2-
# RUN: %clang %p/Inputs/hello.c -g -o "%t-'pat"
2+
# RUN: %clang_host %p/Inputs/hello.c -g -o "%t-'pat"
33
# RUN: %lldb -s %s "%t-'pat" | FileCheck %s
44

55
br set -p return
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Make sure lldb resolves the target path.
22
# RUN: mkdir -p %t/foo
33
# RUN: cd %t/foo
4-
# RUN: %clang %p/Inputs/hello.c -g -o a.out
4+
# RUN: %clang_host %p/Inputs/hello.c -g -o a.out
55
# RUN: %lldb -b a.out | FileCheck %s
66

77
# CHECK: Current executable set to '{{.*}}foo{{[/\\\\]+}}a.out'

lldb/test/Shell/ExecControl/StopHook/stop-hook-threads.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %clangxx -std=c++11 %p/Inputs/stop-hook-threads.cpp -g -o %t
1+
# RUN: %clangxx_host -std=c++11 %p/Inputs/stop-hook-threads.cpp -g -o %t
22
# RUN: %lldb -b -s %p/Inputs/stop-hook-threads-1.lldbinit -s %s -f %t \
33
# RUN: | FileCheck --check-prefix=CHECK --check-prefix=CHECK-NO-FILTER %s
44
# RUN: %lldb -b -s %p/Inputs/stop-hook-threads-2.lldbinit -s %s -f %t \

lldb/test/Shell/ExecControl/StopHook/stop-hook.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %clang %p/Inputs/stop-hook.c -g -o %t
1+
# RUN: %clang_host %p/Inputs/stop-hook.c -g -o %t
22
# Test setting stop-hook per-function
33
# RUN: %lldb -b -s %p/Inputs/stop-hook-1.lldbinit -s %s -f %t \
44
# RUN: | FileCheck --check-prefix=CHECK --check-prefix=CHECK-FUNC %s

lldb/test/Shell/Expr/TestIRMemoryMap.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# UNSUPPORTED: system-windows
22

3-
# RUN: %clangxx %p/Inputs/call-function.cpp -g -o %t
3+
# RUN: %clangxx_host %p/Inputs/call-function.cpp -g -o %t
44

55
# RUN: lldb-test ir-memory-map %t %S/Inputs/ir-memory-map-basic
66
# RUN: lldb-test ir-memory-map -host-only %t %S/Inputs/ir-memory-map-basic

lldb/test/Shell/Expr/TestIRMemoryMapWindows.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# REQUIRES: system-windows
22

3-
# RUN: %clang_cl /Zi /GS- %p/Inputs/call-function.cpp /c /o %t.obj
3+
# RUN: %clang_cl_host /Zi /GS- %p/Inputs/call-function.cpp /c /o %t.obj
44
# RUN: %msvc_link /debug:full %t.obj /out:%t
55

66
# RUN: lldb-test ir-memory-map %t %S/Inputs/ir-memory-map-basic

lldb/test/Shell/Heap/heap-cstr.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# REQUIRES: system-darwin
2-
# RUN: %clang %p/Inputs/cstr.c -g -o %t
2+
# RUN: %clang_host %p/Inputs/cstr.c -g -o %t
33
# RUN: %lldb -b -s %s -f %t | FileCheck %s
44

55
br set -p return

lldb/test/Shell/Host/TestCustomShell.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# XFAIL: system-netbsd
88
# XFAIL: system-openbsd
99

10-
# RUN: %clang %S/Inputs/simple.c -g -o %t.out
10+
# RUN: %clang_host %S/Inputs/simple.c -g -o %t.out
1111
# RUN: SHELL=bogus %lldb %t.out -b -o 'run' 2>&1 | FileCheck %s --check-prefix ERROR
1212
# RUN: env -i %lldb %t.out -b -o 'run' 2>&1 | FileCheck %s
1313

lldb/test/Shell/ObjectFile/ELF/minidebuginfo-set-and-hit-breakpoint.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# We want to keep the symbol "multiplyByThree" in the .dynamic section and not
44
# have it put the default .symtab section.
55
# RUN: echo "{multiplyByThree;};" > %T/dynmic-symbols.txt
6-
# RUN: %clang -Wl,--dynamic-list=%T/dynmic-symbols.txt -g -o %t.binary %p/Inputs/minidebuginfo-main.c
6+
# RUN: %clang_host -Wl,--dynamic-list=%T/dynmic-symbols.txt -g -o %t.binary %p/Inputs/minidebuginfo-main.c
77

88
# The following section is adapted from GDB's official documentation:
99
# http://sourceware.org/gdb/current/onlinedocs/gdb/MiniDebugInfo.html#MiniDebugInfo

lldb/test/Shell/Process/TestEnvironment.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ UNSUPPORTED: system-windows
22

33
The double quotes around "BAR" ensure we don't match the command.
44

5-
RUN: %clangxx -std=c++11 %p/Inputs/env.cpp -o %t
5+
RUN: %clangxx_host -std=c++11 %p/Inputs/env.cpp -o %t
66
RUN: %lldb %t -o 'process launch --environment FOO="BAR"' | FileCheck %s
77
RUN: %lldb %t -o 'env FOO="BAR"' -o 'process launch' | FileCheck %s
88

lldb/test/Shell/Register/aarch64-fp-read.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# REQUIRES: native && target-aarch64
2-
# RUN: %clangxx -fomit-frame-pointer %p/Inputs/aarch64-fp-read.cpp -o %t
2+
# RUN: %clangxx_host -fomit-frame-pointer %p/Inputs/aarch64-fp-read.cpp -o %t
33
# RUN: %lldb -b -s %s %t | FileCheck %s
44
process launch
55

lldb/test/Shell/Register/aarch64-gp-read.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# REQUIRES: native && target-aarch64
2-
# RUN: %clangxx -fomit-frame-pointer %p/Inputs/aarch64-gp-read.cpp -o %t
2+
# RUN: %clangxx_host -fomit-frame-pointer %p/Inputs/aarch64-gp-read.cpp -o %t
33
# RUN: %lldb -b -s %s %t | FileCheck %s
44
process launch
55

lldb/test/Shell/Register/arm-fp-read.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# REQUIRES: native && target-arm
2-
# RUN: %clangxx -fomit-frame-pointer %p/Inputs/arm-fp-read.cpp -o %t
2+
# RUN: %clangxx_host -fomit-frame-pointer %p/Inputs/arm-fp-read.cpp -o %t
33
# RUN: %lldb -b -s %s %t | FileCheck %s
44
process launch
55

lldb/test/Shell/Register/arm-gp-read.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# REQUIRES: native && target-arm
2-
# RUN: %clangxx -fomit-frame-pointer %p/Inputs/arm-gp-read.cpp -o %t
2+
# RUN: %clangxx_host -fomit-frame-pointer %p/Inputs/arm-gp-read.cpp -o %t
33
# RUN: %lldb -b -s %s %t | FileCheck %s
44
process launch
55

lldb/test/Shell/Register/x86-64-gp-read.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# XFAIL: system-windows
22
# REQUIRES: native && target-x86_64
3-
# RUN: %clangxx -fomit-frame-pointer %p/Inputs/x86-64-gp-read.cpp -o %t
3+
# RUN: %clangxx_host -fomit-frame-pointer %p/Inputs/x86-64-gp-read.cpp -o %t
44
# RUN: %lldb -b -s %s %t | FileCheck %s
55
process launch
66

lldb/test/Shell/Register/x86-64-gp-write.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# UNSUPPORTED: system-darwin
22
# REQUIRES: native && target-x86_64
3-
# RUN: %clangxx -fomit-frame-pointer %p/Inputs/x86-64-gp-write.cpp -o %t
3+
# RUN: %clangxx_host -fomit-frame-pointer %p/Inputs/x86-64-gp-write.cpp -o %t
44
# RUN: %lldb -b -s %s %t | FileCheck %s
55
process launch
66

lldb/test/Shell/Register/x86-64-read.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# XFAIL: system-windows
22
# REQUIRES: native && target-x86_64
3-
# RUN: %clangxx %p/Inputs/x86-64-read.cpp -o %t
3+
# RUN: %clangxx_host %p/Inputs/x86-64-read.cpp -o %t
44
# RUN: %lldb -b -s %s %t | FileCheck %s
55
process launch
66

lldb/test/Shell/Register/x86-64-write.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# XFAIL: system-darwin
22
# XFAIL: system-windows
33
# REQUIRES: native && (target-x86 || target-x86_64) && native-cpu-sse
4-
# RUN: %clangxx %p/Inputs/x86-64-write.cpp -o %t
4+
# RUN: %clangxx_host %p/Inputs/x86-64-write.cpp -o %t
55
# RUN: %lldb -b -s %s %t | FileCheck %s
66
process launch
77

lldb/test/Shell/Register/x86-64-xmm16-read.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# XFAIL: system-windows
55
# XFAIL: system-darwin
66
# REQUIRES: native && target-x86_64 && native-cpu-avx512f
7-
# RUN: %clangxx %p/Inputs/x86-zmm-read.cpp -o %t
7+
# RUN: %clangxx_host %p/Inputs/x86-zmm-read.cpp -o %t
88
# RUN: %lldb -b -s %s %t | FileCheck %s
99
process launch
1010

lldb/test/Shell/Register/x86-64-xmm16-write.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# XFAIL: system-netbsd
55
# XFAIL: system-windows
66
# REQUIRES: native && target-x86 && native-cpu-avx512f
7-
# RUN: %clangxx %p/Inputs/x86-zmm-write.cpp -o %t
7+
# RUN: %clangxx_host %p/Inputs/x86-zmm-write.cpp -o %t
88
# RUN: %lldb -b -s %s %t | FileCheck %s
99
process launch
1010

lldb/test/Shell/Register/x86-64-ymm-read.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# XFAIL: system-windows
22
# REQUIRES: native && target-x86_64 && native-cpu-avx
3-
# RUN: %clangxx %p/Inputs/x86-ymm-read.cpp -o %t
3+
# RUN: %clangxx_host %p/Inputs/x86-ymm-read.cpp -o %t
44
# RUN: %lldb -b -s %s %t | FileCheck %s
55
process launch
66

lldb/test/Shell/Register/x86-64-ymm-write.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# XFAIL: system-darwin
22
# XFAIL: system-windows
33
# REQUIRES: native && target-x86_64 && native-cpu-avx
4-
# RUN: %clangxx %p/Inputs/x86-ymm-write.cpp -o %t
4+
# RUN: %clangxx_host %p/Inputs/x86-ymm-write.cpp -o %t
55
# RUN: %lldb -b -s %s %t | FileCheck %s
66
process launch
77

lldb/test/Shell/Register/x86-64-ymm16-read.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# XFAIL: system-windows
55
# XFAIL: system-darwin
66
# REQUIRES: native && target-x86_64 && native-cpu-avx512f
7-
# RUN: %clangxx %p/Inputs/x86-zmm-read.cpp -o %t
7+
# RUN: %clangxx_host %p/Inputs/x86-zmm-read.cpp -o %t
88
# RUN: %lldb -b -s %s %t | FileCheck %s
99
process launch
1010

lldb/test/Shell/Register/x86-64-ymm16-write.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# XFAIL: system-netbsd
55
# XFAIL: system-windows
66
# REQUIRES: native && target-x86 && native-cpu-avx512f
7-
# RUN: %clangxx %p/Inputs/x86-zmm-write.cpp -o %t
7+
# RUN: %clangxx_host %p/Inputs/x86-zmm-write.cpp -o %t
88
# RUN: %lldb -b -s %s %t | FileCheck %s
99
process launch
1010

lldb/test/Shell/Register/x86-64-zmm-read.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# XFAIL: system-netbsd
44
# XFAIL: system-windows
55
# REQUIRES: native && target-x86_64 && native-cpu-avx512f
6-
# RUN: %clangxx %p/Inputs/x86-zmm-read.cpp -o %t
6+
# RUN: %clangxx_host %p/Inputs/x86-zmm-read.cpp -o %t
77
# RUN: %lldb -b -s %s %t | FileCheck %s
88
process launch
99

lldb/test/Shell/Register/x86-64-zmm-write.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# XFAIL: system-netbsd
55
# XFAIL: system-windows
66
# REQUIRES: native && target-x86_64 && native-cpu-avx512f
7-
# RUN: %clangxx %p/Inputs/x86-zmm-write.cpp -o %t
7+
# RUN: %clangxx_host %p/Inputs/x86-zmm-write.cpp -o %t
88
# RUN: %lldb -b -s %s %t | FileCheck %s
99
process launch
1010

lldb/test/Shell/Register/x86-gp-read.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# XFAIL: system-windows
22
# REQUIRES: native && target-x86
3-
# RUN: %clangxx -fomit-frame-pointer %p/Inputs/x86-gp-read.cpp -o %t
3+
# RUN: %clangxx_host -fomit-frame-pointer %p/Inputs/x86-gp-read.cpp -o %t
44
# RUN: %lldb -b -s %s %t | FileCheck %s
55
process launch
66

lldb/test/Shell/Register/x86-gp-write.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# XFAIL: system-windows
22
# REQUIRES: native && target-x86
3-
# RUN: %clangxx -fomit-frame-pointer %p/Inputs/x86-gp-write.cpp -o %t
3+
# RUN: %clangxx_host -fomit-frame-pointer %p/Inputs/x86-gp-write.cpp -o %t
44
# RUN: %lldb -b -s %s %t | FileCheck %s
55
process launch
66

lldb/test/Shell/Register/x86-mm-xmm-read.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# XFAIL: system-darwin
22
# XFAIL: system-windows
33
# REQUIRES: native && (target-x86 || target-x86_64) && native-cpu-sse
4-
# RUN: %clangxx %p/Inputs/x86-mm-xmm-read.cpp -o %t
4+
# RUN: %clangxx_host %p/Inputs/x86-mm-xmm-read.cpp -o %t
55
# RUN: %lldb -b -s %s %t | FileCheck %s
66
process launch
77

lldb/test/Shell/Register/x86-mm-xmm-write.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# XFAIL: system-darwin
22
# XFAIL: system-windows
33
# REQUIRES: native && (target-x86 || target-x86_64) && native-cpu-sse
4-
# RUN: %clangxx %p/Inputs/x86-mm-xmm-write.cpp -o %t
4+
# RUN: %clangxx_host %p/Inputs/x86-mm-xmm-write.cpp -o %t
55
# RUN: %lldb -b -s %s %t | FileCheck %s
66
process launch
77

lldb/test/Shell/Register/x86-ymm-read.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# XFAIL: system-windows
22
# REQUIRES: native && target-x86 && native-cpu-avx
3-
# RUN: %clangxx %p/Inputs/x86-ymm-read.cpp -o %t
3+
# RUN: %clangxx_host %p/Inputs/x86-ymm-read.cpp -o %t
44
# RUN: %lldb -b -s %s %t | FileCheck %s
55
process launch
66

lldb/test/Shell/Register/x86-ymm-write.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# XFAIL: system-windows
22
# REQUIRES: native && target-x86 && native-cpu-avx
3-
# RUN: %clangxx %p/Inputs/x86-ymm-write.cpp -o %t
3+
# RUN: %clangxx_host %p/Inputs/x86-ymm-write.cpp -o %t
44
# RUN: %lldb -b -s %s %t | FileCheck %s
55
process launch
66

lldb/test/Shell/Register/x86-zmm-read.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# XFAIL: system-netbsd
44
# XFAIL: system-windows
55
# REQUIRES: native && target-x86 && native-cpu-avx512f
6-
# RUN: %clangxx %p/Inputs/x86-zmm-read.cpp -o %t
6+
# RUN: %clangxx_host %p/Inputs/x86-zmm-read.cpp -o %t
77
# RUN: %lldb -b -s %s %t | FileCheck %s
88
process launch
99

lldb/test/Shell/Register/x86-zmm-write.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# XFAIL: system-netbsd
44
# XFAIL: system-windows
55
# REQUIRES: native && target-x86 && native-cpu-avx512f
6-
# RUN: %clangxx %p/Inputs/x86-zmm-write.cpp -o %t
6+
# RUN: %clangxx_host %p/Inputs/x86-zmm-write.cpp -o %t
77
# RUN: %lldb -b -s %s %t | FileCheck %s
88
process launch
99

lldb/test/Shell/Reproducer/Functionalities/TestDataFormatter.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This tests that data formatters continue to work when replaying a reproducer.
44

55
# RUN: rm -rf %t.repro
6-
# RUN: %clangxx %S/Inputs/foo.cpp -g -o %t.out
6+
# RUN: %clangxx_host %S/Inputs/foo.cpp -g -o %t.out
77

88
# RUN: %lldb -x -b -s %S/Inputs/DataFormatter.in --capture --capture-path %t.repro %t.out | FileCheck %s
99
# RUN: %lldb --replay %t.repro | FileCheck %s

lldb/test/Shell/Reproducer/Functionalities/TestImageList.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This tests that image list works when replaying. We arbitrarily assume
44
# there's at least two entries and compare that they're identical.
55

6-
# RUN: %clang %S/Inputs/stepping.c -g -o %t.out
6+
# RUN: %clang_host %S/Inputs/stepping.c -g -o %t.out
77

88
# RUN: rm -rf %t.txt
99

lldb/test/Shell/Reproducer/Functionalities/TestStepping.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This tests that stepping continues to work when replaying a reproducer.
44

55
# RUN: rm -rf %t.repro
6-
# RUN: %clang %S/Inputs/stepping.c -O0 -g -o %t.out
6+
# RUN: %clang_host %S/Inputs/stepping.c -O0 -g -o %t.out
77
# RUN: grep -v '#' %s > %t.in
88

99
# RUN: %lldb -x -b -s %t.in --capture --capture-path %t.repro %t.out | FileCheck %s --check-prefix CHECK

lldb/test/Shell/Reproducer/Modules/TestModuleCXX.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# RUN: cp %S/Inputs/module.modulemap %t.root
1717

1818
# Compile the test case form the temporary root.
19-
# RUN: %clang %t.root/main.cpp -g -fmodules -fcxx-modules -fmodules-cache-path=%t.clang-cache -o %t.root/a.out
19+
# RUN: %clang_host %t.root/main.cpp -g -fmodules -fcxx-modules -fmodules-cache-path=%t.clang-cache -o %t.root/a.out
2020

2121
# Capture the debug session.
2222
# RUN: %lldb -x -b -o 'settings set symbols.clang-modules-cache-path %t.lldb-cache' -s %S/Inputs/ModuleCXX.in --capture --capture-path %t.repro %t.root/a.out | FileCheck %s --check-prefix CAPTURE

lldb/test/Shell/Reproducer/TestDump.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Generate a reproducer.
55
# RUN: mkdir -p %t
66
# RUN: rm -rf %t.repro
7-
# RUN: %clang %S/Inputs/simple.c -g -o %t/reproducer.out
7+
# RUN: %clang_host %S/Inputs/simple.c -g -o %t/reproducer.out
88
# RUN: %lldb -x -b -s %S/Inputs/FileCapture.in -o 'reproducer dump -p files' --capture --capture-path %t.repro %t/reproducer.out
99

1010
# RUN: %lldb -b -o 'reproducer dump -p files -f %t.repro' | FileCheck %s --check-prefix FILES

lldb/test/Shell/Reproducer/TestFileRepro.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# that the string "testing" is not printed.
88

99
# RUN: rm -rf %t.repro
10-
# RUN: %clang %S/Inputs/simple.c -g -o %t.out
10+
# RUN: %clang_host %S/Inputs/simple.c -g -o %t.out
1111
# RUN: %lldb -x -b -s %S/Inputs/FileCapture.in --capture --capture-path %t.repro %t.out | FileCheck %s --check-prefix CHECK --check-prefix CAPTURE
1212
# RUN: rm %t.out
1313
# RUN: %lldb --replay %t.repro | FileCheck %s --check-prefix CHECK --check-prefix REPLAY

lldb/test/Shell/Reproducer/TestGDBRemoteRepro.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# that the string "testing" is not printed.
88

99
# RUN: rm -rf %t.repro
10-
# RUN: %clang %S/Inputs/simple.c -g -o %t.out
10+
# RUN: %clang_host %S/Inputs/simple.c -g -o %t.out
1111
# RUN: %lldb -x -b -s %S/Inputs/GDBRemoteCapture.in --capture --capture-path %t.repro %t.out | FileCheck %s --check-prefix CHECK --check-prefix CAPTURE
1212
# RUN: env FOO=BAR %lldb --replay %t.repro | FileCheck %s --check-prefix CHECK --check-prefix REPLAY
1313

lldb/test/Shell/Reproducer/TestRelativePath.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
# RUN: mkdir -p %t
44
# RUN: cd %t
55
# RUN: rm -rf ./foo
6-
# RUN: %clang %S/Inputs/simple.c -g -o %t/reproducer.out
6+
# RUN: %clang_host %S/Inputs/simple.c -g -o %t/reproducer.out
77
# RUN: %lldb -x -b -s %S/Inputs/FileCapture.in -o 'reproducer dump -p files' --capture --capture-path ./foo %t/reproducer.out
88
# RUN: %lldb --replay ./foo

lldb/test/Shell/Reproducer/TestReuseDirectory.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# reproducer functionality.
55

66
# RUN: rm -rf %t.repro
7-
# RUN: %clang %S/Inputs/simple.c -g -o %t.out
7+
# RUN: %clang_host %S/Inputs/simple.c -g -o %t.out
88
# RUN: %lldb -x -b -s %S/Inputs/GDBRemoteCapture.in --capture --capture-path %t.repro %t.out | FileCheck %S/TestGDBRemoteRepro.test --check-prefix CHECK --check-prefix CAPTURE
99
# RUN: %lldb -x -b -s %S/Inputs/GDBRemoteCapture.in --capture --capture-path %t.repro %t.out | FileCheck %S/TestGDBRemoteRepro.test --check-prefix CHECK --check-prefix CAPTURE
1010
# RUN: %lldb --replay %t.repro | FileCheck %S/TestGDBRemoteRepro.test --check-prefix CHECK --check-prefix REPLAY

lldb/test/Shell/Reproducer/TestWorkingDir.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# RUN: mkdir -p %t
1212
# RUN: mkdir -p %t/binary
1313
# RUN: cd %t
14-
# RUN: %clang %S/Inputs/simple.c -g -o binary/reproducer.out
14+
# RUN: %clang_host %S/Inputs/simple.c -g -o binary/reproducer.out
1515
# RUN: %lldb -x -b -s %S/Inputs/WorkingDir.in --capture --capture-path %t.repro binary/reproducer.out
1616
# RUN: rm -rf %t/binary
1717

lldb/test/Shell/Settings/TestFrameFormatColor.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %clang -g -O0 %S/Inputs/main.c -o %t.out
1+
# RUN: %clang_host -g -O0 %S/Inputs/main.c -o %t.out
22
# RUN: %lldb -x -b -s %s %t.out | FileCheck %s
33
settings set use-color true
44
settings set -f frame-format "frame #${frame.index}: \`${ansi.fg.green}{${function.name-with-args}${ansi.normal}\n"

lldb/test/Shell/Settings/TestFrameFormatNoColor.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RUN: %clang -g -O0 %S/Inputs/main.c -o %t.out
1+
# RUN: %clang_host -g -O0 %S/Inputs/main.c -o %t.out
22
# RUN: %lldb -x -b -s %s %t.out | FileCheck %s
33
settings set use-color false
44
settings set -f frame-format "frame #${frame.index}: \`${ansi.fg.green}{${function.name-with-args}${ansi.normal}\n"

lldb/test/Shell/SymbolFile/DWARF/anon_class_w_and_wo_export_symbols.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
; } a;
1919
;```
2020
;
21-
; RUN: %clang++ -g -c -o %t.o %s
21+
; RUN: %clangxx_host -g -c -o %t.o %s
2222
; RUN: lldb-test symbols -dump-clang-ast %t.o | FileCheck %s
2323
; RUN: llvm-dwarfdump %t.o | FileCheck %s --check-prefix DWARFDUMP
2424

0 commit comments

Comments
 (0)