File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
products/libllbuild/include Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
- // swift-tools-version:5 .0
1
+ // swift-tools-version:4 .0
2
2
3
3
// This file defines Swift package manager support for llbuild. See:
4
4
// https://github.com/apple/swift-package-manager/tree/master/Documentation
5
+ //
6
+ // You can build using:
7
+ //
8
+ // ```shell
9
+ // swift build -Xlinker -lsqlite3 -Xlinker -lncurses $(utils/generate-version-h.sh)
10
+ // ```
5
11
6
12
import PackageDescription
7
13
@@ -55,8 +61,7 @@ let package = Package(
55
61
. target(
56
62
name: " llbuildCore " ,
57
63
dependencies: [ " llbuildBasic " ] ,
58
- path: " lib/Core " ,
59
- linkerSettings: [ . linkedLibrary( " sqlite3 " ) ]
64
+ path: " lib/Core "
60
65
) ,
61
66
. target(
62
67
name: " llbuildBuildSystem " ,
@@ -112,8 +117,7 @@ let package = Package(
112
117
113
118
. target(
114
119
name: " llvmSupport " ,
115
- path: " lib/llvm/Support " ,
116
- linkerSettings: [ . linkedLibrary( " ncurses " ) ]
120
+ path: " lib/llvm/Support "
117
121
) ,
118
122
] ,
119
123
cxxLanguageStandard: . cxx14
Original file line number Diff line number Diff line change 1
1
module "llbuild" {
2
2
umbrella header "llbuild/llbuild.h"
3
+
4
+ // Hack: This allows the clients to autolink these system libraries when
5
+ // building using SwiftPM. We should declare this in the Package.swift
6
+ // manifest file once SwiftPM exposes an API for it.
7
+ link "sqlite3"
8
+ link "ncurses"
3
9
}
You can’t perform that action at this time.
0 commit comments