
Add support for existing -rpath option to AIX. Prior to this PR, if -rpath is passed on AIX it gets passed to the linker and crashes as the linker on AIX cannot process it.
12 lines
511 B
C
12 lines
511 B
C
// Make sure that arguments that begin with @ are left as is in the argument
|
|
// stream, and also that @file arguments continue to be processed.
|
|
|
|
// RUN: echo "-D FOO" > %t.args
|
|
// RUN: %clang -rpath @executable_path/../lib @%t.args %s -### 2>&1 | FileCheck %s \
|
|
// RUN: --check-prefixes=%if system-aix %{CHECK-AIX,CHECK-ALL%} \
|
|
// RUN: %else %{CHECK-ALL,CHECK%}
|
|
|
|
// CHECK-ALL: "-D" "FOO"
|
|
// CHECK: "-rpath" "@executable_path/../lib"
|
|
// CHECK-AIX: "-blibpath:@executable_path/../lib:/usr/lib:/lib"
|