2016-10-06 17:40:37 +08:00
|
|
|
// RUN: %clangxx %s -### -no-canonical-prefixes --target=x86_64-unknown-fuchsia \
|
2017-10-24 05:31:05 +08:00
|
|
|
// RUN: --sysroot=%S/platform 2>&1 | FileCheck %s
|
2016-10-06 14:08:09 +08:00
|
|
|
// CHECK: {{.*}}clang{{.*}}" "-cc1"
|
2017-07-13 06:14:41 +08:00
|
|
|
// CHECK: "-triple" "x86_64-fuchsia"
|
2016-10-06 14:08:09 +08:00
|
|
|
// CHECK: "-fuse-init-array"
|
|
|
|
// CHECK: "-isysroot" "[[SYSROOT:[^"]+]]"
|
2018-06-28 11:11:52 +08:00
|
|
|
// CHECK: "-internal-isystem" "{{.*[/\\]}}include{{/|\\\\}}c++{{/|\\\\}}v1"
|
2016-10-06 14:08:09 +08:00
|
|
|
// CHECK: "-internal-externc-isystem" "[[SYSROOT]]{{/|\\\\}}include"
|
2017-10-24 05:31:05 +08:00
|
|
|
// CHECK: {{.*}}ld.lld{{.*}}" "-z" "rodynamic"
|
2016-10-06 14:08:09 +08:00
|
|
|
// 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
|
2017-07-13 06:14:41 +08:00
|
|
|
// CHECK: "-L[[SYSROOT]]{{/|\\\\}}lib"
|
2018-05-12 04:42:31 +08:00
|
|
|
// CHECK: "-lc++" "-lm"
|
2016-10-06 14:08:09 +08:00
|
|
|
// 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
|
2018-06-23 11:15:07 +08:00
|
|
|
// CHECK-STATIC: "-Bstatic"
|
2018-05-12 04:42:31 +08:00
|
|
|
// CHECK-STATIC: "-lc++"
|
2018-06-23 11:15:07 +08:00
|
|
|
// CHECK-STATIC: "-Bdynamic"
|
2016-10-06 14:08:09 +08:00
|
|
|
// CHECK-STATIC: "-lm"
|
|
|
|
// CHECK-STATIC: "-lc"
|