File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1536,6 +1536,12 @@ def consider_archive(f):
1536
1536
1537
1537
response_fh = open (response_file , 'w' )
1538
1538
for arg in actual_files :
1539
+ # Starting from LLVM 3.9.0 trunk around July 2016, LLVM escapes backslashes in response files, so Windows paths
1540
+ # "c:\path\to\file.txt" with single slashes no longer work. LLVM upstream dev 3.9.0 from January 2016 still treated
1541
+ # backslashes without escaping. To preserve compatibility with both versions of llvm-link, don't pass backslash
1542
+ # path delimiters at all to response files, but always use forward slashes.
1543
+ if WINDOWS : arg = arg .replace ('\\ ' , '/' )
1544
+
1539
1545
# escaped double quotes allows 'space' characters in pathname the response file can use
1540
1546
response_fh .write ("\" " + arg + "\" \n " )
1541
1547
response_fh .close ()
You can’t perform that action at this time.
0 commit comments