diff --git a/.gitignore b/.gitignore index 330d167..33be9ad 100644 --- a/.gitignore +++ b/.gitignore @@ -88,3 +88,5 @@ fastlane/test_output # https://github.com/johnno1962/injectionforxcode iOSInjectionProject/ + +.swiftpm diff --git a/.swiftpm/configuration/Package.resolved b/.swiftpm/configuration/Package.resolved deleted file mode 100644 index 9a446d3..0000000 --- a/.swiftpm/configuration/Package.resolved +++ /dev/null @@ -1,14 +0,0 @@ -{ - "pins" : [ - { - "identity" : "swift-argument-parser", - "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-argument-parser", - "state" : { - "revision" : "41982a3656a71c768319979febd796c6fd111d5c", - "version" : "1.5.0" - } - } - ], - "version" : 2 -} diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/.swiftpm/xcode/package.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/.swiftpm/xcode/package.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted file mode 100644 index 54782e3..0000000 --- a/.swiftpm/xcode/package.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded - - - diff --git a/Plugins/MetalCompilerPlugin/MetalPlugin.swift b/Plugins/MetalCompilerPlugin/MetalPlugin.swift index 2448e26..72b5b37 100644 --- a/Plugins/MetalCompilerPlugin/MetalPlugin.swift +++ b/Plugins/MetalCompilerPlugin/MetalPlugin.swift @@ -190,6 +190,13 @@ struct MetalCompiler: Decodable { environment["TMPDIR"] = "/private/tmp" verbose?("Custom TMPDIR: /private/tmp") + if let extraEnvironment = config.extraEnvironment { + for (key, value) in extraEnvironment { + environment[key] = value + verbose?("Extra environment: \(key)=\(value)") + } + } + arguments += ["-DMETAL"] verbose?("Build command environment:")