mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix linker flags for -static-executable
Also adds a test to ensure it does not break in the future
This commit is contained in:
10
test/Driver/static-executable.swift
Normal file
10
test/Driver/static-executable.swift
Normal file
@@ -0,0 +1,10 @@
|
||||
// Create a self contained binary
|
||||
// REQUIRES: OS=linux-gnu
|
||||
// REQUIRES: static_stdlib
|
||||
print("hello world!")
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swiftc_driver -static-executable -o %t/static-executable %s
|
||||
// RUN: %t/static-executable | %FileCheck %s
|
||||
// RUN: %llvm-readelf -program-headers %t/static-executable | %FileCheck %s --check-prefix=ELF
|
||||
// CHECK: hello world!
|
||||
// ELF-NOT: INTERP
|
||||
Reference in New Issue
Block a user