Skip to content

Commit da01257

Browse files
authored
[Test] Account for spaces in paths in the new dtlto/files.test (#146749)
This uses LIT substitutions in a response file that could contain spaces in paths. This caused a failure on a build bot where the path to the system Python executable was "C:\Program Files\Python310\python.exe", as reported in #142757. Add appropriate quoting to fix the issue.
1 parent e3edc1b commit da01257

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lld/test/ELF/dtlto/files.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ RUN: llc t2.ll --filetype=obj -o t2.o
2424
## the contents of the object files supplied on the command line into the
2525
## output object files in job order.
2626
RUN: echo "t1.bc t2.bc --start-lib t3.bc --end-lib -o my.elf \
27-
RUN: --thinlto-distributor=%python \
28-
RUN: --thinlto-distributor-arg=%llvm_src_root/utils/dtlto/mock.py \
27+
RUN: --thinlto-distributor=\"%python\" \
28+
RUN: --thinlto-distributor-arg=\"%llvm_src_root/utils/dtlto/mock.py\" \
2929
RUN: --thinlto-distributor-arg=t1.o \
3030
RUN: --thinlto-distributor-arg=t2.o" > l.rsp
3131

0 commit comments

Comments
 (0)