[clang][test] Fix solaris ld driver test to not assume gnu ld location (#186250)
This commit is contained in:
parent
093c6391b2
commit
da0aec2990
5
clang/test/Driver/Inputs/fake_ld/ld
Executable file
5
clang/test/Driver/Inputs/fake_ld/ld
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Unexpectedly running fake ld" 1>&2
|
||||
|
||||
exit 1
|
||||
@ -1,7 +1,7 @@
|
||||
// REQUIRES: system-solaris
|
||||
|
||||
// Check that clang invokes the native ld.
|
||||
// Check that clang invokes the native ld, not whatever "ld" that happens to be in PATH
|
||||
|
||||
// RUN: test -f /usr/gnu/bin/ld && env PATH=/usr/gnu/bin %clang -o %t.o %s
|
||||
// RUN: env PATH=%S/Inputs/fake_ld/ %clang -v -o %t.o %s
|
||||
|
||||
int main() { return 0; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user