[all-commits] [llvm/llvm-project] 340fea: [Driver] Escape the program path for -frecord-comm...
Scott Linder via All-commits
all-commits at lists.llvm.org
Fri Feb 21 16:17:31 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 340feac6721e840f88c1e77dd79931eea5eaccf3
https://github.com/llvm/llvm-project/commit/340feac6721e840f88c1e77dd79931eea5eaccf3
Author: Scott Linder <Scott.Linder at amd.com>
Date: 2020-02-21 (Fri, 21 Feb 2020)
Changed paths:
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/test/Driver/clang_f_opts.c
Log Message:
-----------
[Driver] Escape the program path for -frecord-command-line
Similar to the rest of the command line that is recorded, the program
path must also have spaces and backslashes escaped. Without this
parsing the recorded command line becomes hard on platforms like
Windows where spaces and backslashes are common.
This was originally reverted in
577d9ce35532439203411c999deefc9c80e04c69; this version makes a test
agnostic to the presence of backslashes in paths on some platforms.
Patch By: Ravi Ramaseshan
Differential Revision: https://reviews.llvm.org/D74811
More information about the All-commits
mailing list