Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request #202 from JohnSundell/remove-static-linking
Browse files Browse the repository at this point in the history
Make: Don’t statically link standard library
  • Loading branch information
JohnSundell authored Apr 12, 2019
2 parents cd12e61 + 398ff57 commit 582505b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.2
5.0
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: generic
sudo: required
dist: trusty
env:
- SWIFT_VERSION=4.2
- SWIFT_VERSION=5.0
install:
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)"
script:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ install: build install_bin

build:
swift package update
swift build -c release -Xswiftc -static-stdlib
swift build -c release

install_bin:
mkdir -p $(PREFIX)/bin
Expand Down
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/JohnSundell/Files.git",
"state": {
"branch": null,
"revision": "06f95bd1bf4f8d5f50bc6bb30b808c253acd4c88",
"version": "2.2.1"
"revision": "a84615f4558151fab52ac38df697ce2442991f93",
"version": "2.3.0"
}
},
{
Expand Down
6 changes: 1 addition & 5 deletions Sources/MarathonCore/Install.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ internal class InstallTask: Task, Executable {
let installPath = makeInstallPath(for: script)

printer.reportProgress("Compiling script...")
#if os(Linux)
try script.build(withArguments: ["-c", "release"])
#else
try script.build(withArguments: ["-c", "release", "-Xswiftc", "-static-stdlib"])
#endif
try script.build(withArguments: ["-c", "release"])
printer.reportProgress("Installing binary...")
let installed = try script.install(at: installPath, confirmBeforeOverwriting: !arguments.contains("--force"))

Expand Down

0 comments on commit 582505b

Please sign in to comment.