forked from OSchip/llvm-project
[Driver] Fuchsia targets default to -fasynchronous-unwind-tables
This regressed for x86-64 in r307856 because it's no longer inherited from Generic_GCC. We'd never noticed that it was missing other targets (i.e. aarch64), but Fuchsia is uniform across all machines. Patch by Roland McGrath Differential Revision: https://reviews.llvm.org/D37723 llvm-svn: 312989
This commit is contained in:
parent
1e9a4ab031
commit
e63da24f57
|
|
@ -49,6 +49,9 @@ public:
|
|||
CXXStdlibType GetDefaultCXXStdlibType() const override {
|
||||
return ToolChain::CST_Libcxx;
|
||||
}
|
||||
bool IsUnwindTablesDefault(const llvm::opt::ArgList &Args) const override {
|
||||
return true;
|
||||
}
|
||||
bool isPICDefault() const override { return false; }
|
||||
bool isPIEDefault() const override { return true; }
|
||||
bool isPICDefaultForced() const override { return false; }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
// RUN: %clang %s -### -no-canonical-prefixes --target=x86_64-unknown-fuchsia \
|
||||
// RUN: --sysroot=%S/platform -fuse-ld=ld 2>&1 | FileCheck %s
|
||||
// RUN: --sysroot=%S/platform -fuse-ld=ld 2>&1 \
|
||||
// RUN: | FileCheck -check-prefixes=CHECK,CHECK-X86_64 %s
|
||||
// RUN: %clang %s -### -no-canonical-prefixes --target=aarch64-unknown-fuchsia \
|
||||
// RUN: --sysroot=%S/platform -fuse-ld=ld 2>&1 \
|
||||
// RUN: | FileCheck -check-prefixes=CHECK,CHECK-AARCH64 %s
|
||||
// CHECK: {{.*}}clang{{.*}}" "-cc1"
|
||||
// CHECK: "-munwind-tables"
|
||||
// CHECK: "-fuse-init-array"
|
||||
// CHECK: "-isysroot" "[[SYSROOT:[^"]+]]"
|
||||
// CHECK: "-internal-externc-isystem" "[[SYSROOT]]{{/|\\\\}}include"
|
||||
|
|
@ -15,7 +20,8 @@
|
|||
// CHECK-NOT: crti.o
|
||||
// CHECK-NOT: crtbegin.o
|
||||
// CHECK: "-L[[SYSROOT]]{{/|\\\\}}lib"
|
||||
// CHECK: "{{.*[/\\]}}libclang_rt.builtins-x86_64.a"
|
||||
// CHECK-X86_64: "{{.*[/\\]}}libclang_rt.builtins-x86_64.a"
|
||||
// CHECK-AARCH64: "{{.*[/\\]}}libclang_rt.builtins-aarch64.a"
|
||||
// CHECK: "-lc"
|
||||
// CHECK-NOT: crtend.o
|
||||
// CHECK-NOT: crtn.o
|
||||
|
|
|
|||
Loading…
Reference in New Issue