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)
commit6ac8e034f654db00a7eb680f8ee91839ed9c5b5a
treef69e20a09f35cb356db43ec187e792c16daadd84
parent28b4d5133c1161868d63644e73ddeb78fc361f48
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

llvm-svn: 285675
llvm/include/llvm/Support/CommandLine.h
llvm/lib/Support/CommandLine.cpp
llvm/unittests/Support/CommandLineTest.cpp