forked from OSchip/llvm-project
Don't include the output dir in the response file.
With this it is possible to use chroot/fakechroot to have a completely reproducible link even when thin archives or linker scripts have absolute paths. llvm-svn: 268231
This commit is contained in:
parent
5f0e96e56a
commit
e85bcbd1c3
|
@ -139,7 +139,7 @@ static std::string quote(StringRef S) {
|
||||||
|
|
||||||
static std::string rewritePath(StringRef S) {
|
static std::string rewritePath(StringRef S) {
|
||||||
if (fs::exists(S))
|
if (fs::exists(S))
|
||||||
return getDestPath(S);
|
return relativeToRoot(S);
|
||||||
return S;
|
return S;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
|
|
||||||
# RUN: FileCheck %s --check-prefix=RSP < repro/response.txt
|
# RUN: FileCheck %s --check-prefix=RSP < repro/response.txt
|
||||||
# RSP: {{^}}--hash-style gnu{{$}}
|
# RSP: {{^}}--hash-style gnu{{$}}
|
||||||
# RSP-NEXT: {{.*}}foo.o
|
# RSP-NOT: repro/
|
||||||
|
# RSP-NEXT: /foo.o
|
||||||
# RSP-NEXT: -o bar
|
# RSP-NEXT: -o bar
|
||||||
# RSP-NEXT: -shared
|
# RSP-NEXT: -shared
|
||||||
# RSP-NEXT: --as-needed
|
# RSP-NEXT: --as-needed
|
||||||
|
|
Loading…
Reference in New Issue