Skip to content

Commit d4348f3

Browse files
committed
use Context.environment instead of Foundation
1 parent e14a756 commit d4348f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Package.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// swift-tools-version:5.8
22

33
import PackageDescription
4-
import Foundation
54

65
// NOTE: needed for embedded customizations, ideally this will not be necessary at all in the future, or can be replaced with traits
7-
let shouldBuildForEmbedded = ProcessInfo.processInfo.environment["JAVASCRIPTKIT_EXPERIMENTAL_EMBEDDED_WASM"].flatMap(Bool.init) ?? false
6+
let shouldBuildForEmbedded = Context.environment["JAVASCRIPTKIT_EXPERIMENTAL_EMBEDDED_WASM"].flatMap(Bool.init) ?? false
87

98
let package = Package(
109
name: "JavaScriptKit",

0 commit comments

Comments
 (0)