[lld] da01257 - [Test] Account for spaces in paths in the new dtlto/files.test (#146749)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 2 11:20:12 PDT 2025


Author: bd1976bris
Date: 2025-07-02T19:20:09+01:00
New Revision: da01257c3a16b728718f9bde8bbe435678d96fd8

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

LOG: [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.

Added: 
    

Modified: 
    lld/test/ELF/dtlto/files.test

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/dtlto/files.test b/lld/test/ELF/dtlto/files.test
index 727ef53c7f5b5..54bcf587f46b9 100644
--- a/lld/test/ELF/dtlto/files.test
+++ b/lld/test/ELF/dtlto/files.test
@@ -24,8 +24,8 @@ RUN: llc t2.ll --filetype=obj -o t2.o
 ## the contents of the object files supplied on the command line into the
 ## output object files in job order.
 RUN: echo "t1.bc t2.bc --start-lib t3.bc --end-lib -o my.elf \
-RUN:   --thinlto-distributor=%python \
-RUN:   --thinlto-distributor-arg=%llvm_src_root/utils/dtlto/mock.py \
+RUN:   --thinlto-distributor=\"%python\" \
+RUN:   --thinlto-distributor-arg=\"%llvm_src_root/utils/dtlto/mock.py\" \
 RUN:   --thinlto-distributor-arg=t1.o \
 RUN:   --thinlto-distributor-arg=t2.o" > l.rsp
 


        


More information about the llvm-commits mailing list