forked from OSchip/llvm-project
35 lines
1.3 KiB
C++
35 lines
1.3 KiB
C++
// RUN: %clangxx %s -### -no-canonical-prefixes --target=x86_64-unknown-fuchsia \
|
|
// RUN: --sysroot=%S/platform 2>&1 | FileCheck %s
|
|
// CHECK: {{.*}}clang{{.*}}" "-cc1"
|
|
// CHECK: "-triple" "x86_64-fuchsia"
|
|
// CHECK: "-fuse-init-array"
|
|
// CHECK: "-isysroot" "[[SYSROOT:[^"]+]]"
|
|
// CHECK: "-internal-isystem" "{{.*[/\\]}}x86_64-fuchsia{{/|\\\\}}include{{/|\\\\}}c++{{/|\\\\}}v1"
|
|
// CHECK: "-internal-externc-isystem" "[[SYSROOT]]{{/|\\\\}}include"
|
|
// CHECK: {{.*}}ld.lld{{.*}}" "-z" "rodynamic"
|
|
// CHECK: "--sysroot=[[SYSROOT]]"
|
|
// CHECK: "-pie"
|
|
// CHECK: "--build-id"
|
|
// CHECK: "-dynamic-linker" "ld.so.1"
|
|
// CHECK: Scrt1.o
|
|
// CHECK-NOT: crti.o
|
|
// CHECK-NOT: crtbegin.o
|
|
// CHECK: "-L[[SYSROOT]]{{/|\\\\}}lib"
|
|
// CHECK: "-lc++" "-lc++abi" "-lunwind" "-lm"
|
|
// CHECK: "{{.*[/\\]}}libclang_rt.builtins-x86_64.a"
|
|
// CHECK: "-lc"
|
|
// CHECK-NOT: crtend.o
|
|
// CHECK-NOT: crtn.o
|
|
|
|
// RUN: %clangxx %s -### --target=x86_64-unknown-fuchsia -stdlib=libstdc++ 2>&1 \
|
|
// RUN: | FileCheck %s -check-prefix=CHECK-STDLIB
|
|
// CHECK-STDLIB: error: invalid library name in argument '-stdlib=libstdc++'
|
|
|
|
// RUN: %clangxx %s -### --target=x86_64-unknown-fuchsia -static-libstdc++ 2>&1 \
|
|
// RUN: | FileCheck %s -check-prefix=CHECK-STATIC
|
|
// CHECK-STATIC-NOT: "-Bstatic"
|
|
// CHECK-STATIC: "-lc++" "-lc++abi" "-lunwind"
|
|
// CHECK-STATIC-NOT: "-Bdynamic"
|
|
// CHECK-STATIC: "-lm"
|
|
// CHECK-STATIC: "-lc"
|