We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getenv
1 parent ce90205 commit c89a86eCopy full SHA for c89a86e
Package.swift
@@ -3,12 +3,6 @@
3
import PackageDescription
4
import Foundation
5
6
-#if canImport(Glibc)
7
-import Glibc
8
-#else
9
-import Darwin.C
10
-#endif
11
-
12
let package = Package(
13
name: "SwiftSyntax",
14
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
.appendingPathComponent("utils")
0 commit comments