Skip to content

Re-enable -static-executable test. #79637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions test/Driver/static-executable.swift
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
// Create a self contained binary

// REQUIRES: rdar74148842
// libc.a and libm.a have duplicate definitions of '__isnanl', so this test
// fails to build.

// 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
// RUN: %llvm-readelf --program-headers %t/static-executable | %FileCheck %s --check-prefix=ELF
// CHECK: hello world!
// ELF-NOT: INTERP