llvm-project/clang/test/Driver/at_file_missing.c
Mark Danial 50fcb743ec
[Clang] Add support for -rpath on AIX (#89279)
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.
2025-02-21 11:00:50 -05:00

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"