Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Driver/freebsd.c
Show First 20 Lines • Show All 207 Lines • ▼ Show 20 Lines | |||||
/// -r suppresses -dynamic-linker, default -l and crt*.o like -nostdlib. | /// -r suppresses -dynamic-linker, default -l and crt*.o like -nostdlib. | ||||
// RUN: %clang -### %s --target=aarch64-pc-freebsd11 -r \ | // RUN: %clang -### %s --target=aarch64-pc-freebsd11 -r \ | ||||
// RUN: --sysroot=%S/Inputs/basic_freebsd64_tree 2>&1 | FileCheck %s --check-prefix=RELOCATABLE | // RUN: --sysroot=%S/Inputs/basic_freebsd64_tree 2>&1 | FileCheck %s --check-prefix=RELOCATABLE | ||||
// RELOCATABLE: "-r" | // RELOCATABLE: "-r" | ||||
// RELOCATABLE-NOT: "-dynamic-linker" | // RELOCATABLE-NOT: "-dynamic-linker" | ||||
// RELOCATABLE-NOT: "-l | // RELOCATABLE-NOT: "-l | ||||
// RELOCATABLE-NOT: crt{{[^./]+}}.o | // RELOCATABLE-NOT: crt{{[^./]+}}.o | ||||
// Check that the driver passes include paths to cc1 on FreeBSD. | |||||
MaskRay: Is this sufficient? For Linux `linux-cross.cpp` checks a lot of directories to facilitate code… | |||||
On FreeBSD, the only directories included by default are
I suppose I can add checks for the first two. mhjacobson: On FreeBSD, the only directories included by default are
- /usr/include/c++/v1 (in C++ mode)… | |||||
// RUN: %clang -### %s --target=x86_64-unknown-freebsd13.1 -r 2>&1 \ | |||||
// RUN: | FileCheck %s --check-prefix=DRIVER-PASS-INCLUDES | |||||
// DRIVER-PASS-INCLUDES: "-cc1" {{.*}}"-internal-externc-isystem" "/usr/include" |
Is this sufficient? For Linux linux-cross.cpp checks a lot of directories to facilitate code refactoring.