File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 3
3
import PackageDescription
4
4
import Foundation
5
5
6
- #if canImport(Glibc)
7
- import Glibc
8
- #else
9
- import Darwin. C
10
- #endif
11
-
12
6
let package = Package (
13
7
name: " SwiftSyntax " ,
14
8
targets: [
@@ -26,7 +20,7 @@ let swiftSyntaxTarget: PackageDescription.Target
26
20
27
21
/// If we are in a controlled CI environment, we can use internal compiler flags
28
22
/// to speed up the build or improve it.
29
- if getenv ( " SWIFT_BUILD_SCRIPT_ENVIRONMENT " ) != nil {
23
+ if ProcessInfo . processInfo . environment [ " SWIFT_BUILD_SCRIPT_ENVIRONMENT " ] != nil {
30
24
let groupFile = URL ( fileURLWithPath: #file)
31
25
. deletingLastPathComponent ( )
32
26
. appendingPathComponent ( " utils " )
@@ -51,7 +45,7 @@ let libraryType: Product.Library.LibraryType
51
45
52
46
/// When we're in a build-script environment, we want to build a dylib instead
53
47
/// of a static library since we install the dylib into the toolchain.
54
- if getenv ( " SWIFT_BUILD_SCRIPT_ENVIRONMENT " ) != nil {
48
+ if ProcessInfo . processInfo . environment [ " SWIFT_BUILD_SCRIPT_ENVIRONMENT " ] != nil {
55
49
libraryType = . dynamic
56
50
} else {
57
51
libraryType = . static
You can’t perform that action at this time.
0 commit comments