Skip to content

Commit 8b20c88

Browse files
Merge pull request #59562 from kateinoigakukun/katei/repair-lld-static-link
2 parents 156f081 + 54f1225 commit 8b20c88

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Statically link a "hello world" program
2+
// REQUIRES: OS=linux-gnu
3+
// REQUIRES: static_stdlib
4+
// REQUIRES: lld_lto
5+
print("hello world!")
6+
// RUN: %empty-directory(%t)
7+
// RUN: %target-swiftc_driver -static-stdlib -use-ld=lld %import-static-libdispatch -o %t/static-stdlib-lld %s
8+
// RUN: %t/static-stdlib-lld | %FileCheck %s
9+
// RUN: ldd %t/static-stdlib-lld | %FileCheck %s --check-prefix=LDD
10+
// CHECK: hello world!
11+
// LDD-NOT: libswiftCore.so

0 commit comments

Comments
 (0)