From 7132630bdd4a9ec47513354566d9401616d7ef7d Mon Sep 17 00:00:00 2001 From: Jonathan Wight Date: Tue, 16 Dec 2025 10:04:41 -0800 Subject: [PATCH 1/2] Add .swiftpm to .gitignore --- .gitignore | 2 ++ .swiftpm/configuration/Package.resolved | 14 -------------- .../package.xcworkspace/contents.xcworkspacedata | 7 ------- .../xcshareddata/WorkspaceSettings.xcsettings | 8 -------- 4 files changed, 2 insertions(+), 29 deletions(-) delete mode 100644 .swiftpm/configuration/Package.resolved delete mode 100644 .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata delete mode 100644 .swiftpm/xcode/package.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings 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 - - - From 95f13e0aa132b4026bf4dd4d53ffa07a5e49709b Mon Sep 17 00:00:00 2001 From: Jonathan Wight Date: Wed, 7 Jan 2026 16:03:24 -0800 Subject: [PATCH 2/2] Fix: Apply extraEnvironment config to build command (closes #9) --- Plugins/MetalCompilerPlugin/MetalPlugin.swift | 7 +++++++ 1 file changed, 7 insertions(+) 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:")