]> granicus.if.org Git - llvm/commit
Allow resolving response file names relative to including file
authorSerge Pavlov <sepavloff@gmail.com>
Tue, 1 Nov 2016 06:53:29 +0000 (06:53 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Tue, 1 Nov 2016 06:53:29 +0000 (06:53 +0000)
commit038b68a6a3175c0409f743222b9a4165bc545781
tree3597aed6a5e2b8010aac9694d97469b611b8a6c4
parentaa686ddd58c34cf23eaf2d66005c4f98a78fa241
Allow resolving response file names relative to including file

If a response file included by construct @file itself includes a response file
and that file is specified by relative file name, current behavior is to resolve
the name relative to the current working directory. The change adds additional
flag to ExpandResponseFiles that may be used to resolve nested response file
names relative to including file. With the new mode a set of related response
files may be kept together and reference each other with short position
independent names.

Differential Revision: https://reviews.llvm.org/D24917

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285675 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/CommandLine.h
lib/Support/CommandLine.cpp
unittests/Support/CommandLineTest.cpp