File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 2
2
// The swift-tools-version declares the minimum version of Swift required to build this package.
3
3
4
4
import PackageDescription
5
+ import class Foundation. ProcessInfo
5
6
6
7
let package = Package (
7
8
name: " swift-inspect " ,
8
9
products: [
9
10
. library( name: " SwiftInspectClient " , type: . dynamic, targets: [ " SwiftInspectClient " ] ) ,
10
11
] ,
11
- dependencies: [
12
- . package ( url: " https://github.com/apple/swift-argument-parser " , from: " 1.2.2 " ) ,
13
- ] ,
14
12
targets: [
15
13
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
16
14
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
@@ -36,3 +34,11 @@ let package = Package(
36
34
name: " SymbolicationShims " )
37
35
]
38
36
)
37
+
38
+ if ProcessInfo . processInfo. environment [ " SWIFTCI_USE_LOCAL_DEPS " ] == nil {
39
+ package . dependencies += [
40
+ . package ( url: " https://github.com/apple/swift-argument-parser.git " , from: " 1.2.2 " ) ,
41
+ ]
42
+ } else {
43
+ package . dependencies += [ . package ( path: " ../../../swift-argument-parser " ) ]
44
+ }
Original file line number Diff line number Diff line change @@ -1530,12 +1530,14 @@ function Install-HostToolchain() {
1530
1530
function Build-Inspect () {
1531
1531
$OutDir = Join-Path - Path $HostArch.BinaryCache - ChildPath swift- inspect
1532
1532
1533
- Build-SPMProject `
1534
- - Src $SourceCache \swift\tools\swift- inspect `
1535
- - Bin $OutDir `
1536
- - Arch $HostArch `
1537
- - Xcc " -I$SDKInstallRoot \usr\include\swift\SwiftRemoteMirror" - Xlinker " $SDKInstallRoot \usr\lib\swift\windows\$ ( $HostArch.LLVMName ) \swiftRemoteMirror.lib" `
1538
- - Xcc - Xclang - Xcc - fno- split-cold - code # Workaround https://github.com/llvm/llvm-project/issues/40056
1533
+ Isolate- EnvVars {
1534
+ $env: SWIFTCI_USE_LOCAL_DEPS = 1
1535
+ Build-SPMProject `
1536
+ - Src $SourceCache \swift\tools\swift- inspect `
1537
+ - Bin $OutDir `
1538
+ - Arch $HostArch `
1539
+ - Xcc " -I$SDKInstallRoot \usr\include\swift\SwiftRemoteMirror" - Xlinker " $SDKInstallRoot \usr\lib\swift\windows\$ ( $HostArch.LLVMName ) \swiftRemoteMirror.lib"
1540
+ }
1539
1541
}
1540
1542
1541
1543
function Build-Format () {
You can’t perform that action at this time.
0 commit comments