mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 06:18:56 -04:00

The Ananas Operating System (https://github.com/zhmu/ananas) has shared library support as of commit 57739c0b6ece56dd4872aedf30264ed4b9412c77. This change adds the necessary settings to clang so that shared executables and libraries can be build correctly. Submitted by: Rink Springer Differential Revision: https://reviews.llvm.org/D41500 llvm-svn: 322064
18 lines
645 B
C
18 lines
645 B
C
// RUN: %clang -no-canonical-prefixes -target x86_64-unknown-ananas -static %s \
|
|
// RUN: --sysroot=%S/Inputs/ananas-tree -### 2>&1 \
|
|
// RUN: | FileCheck --check-prefix=CHECK-STATIC %s
|
|
// CHECK-STATIC: ld{{.*}}" "-Bstatic"
|
|
// CHECK-STATIC: crt0.o
|
|
// CHECK-STATIC: crti.o
|
|
// CHECK-STATIC: crtbegin.o
|
|
// CHECK-STATIC: crtend.o
|
|
// CHECK-STATIC: crtn.o
|
|
|
|
// RUN: %clang -no-canonical-prefixes -target x86_64-unknown-ananas -shared %s \
|
|
// RUN: --sysroot=%S/Inputs/ananas-tree -### 2>&1 \
|
|
// RUN: | FileCheck --check-prefix=CHECK-SHARED %s
|
|
// CHECK-SHARED: crti.o
|
|
// CHECK-SHARED: crtbeginS.o
|
|
// CHECK-SHARED: crtendS.o
|
|
// CHECK-SHARED: crtn.o
|