diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/bazel/bazelruleclassprovider-0.25.patch')
-rw-r--r-- | var/spack/repos/builtin/packages/bazel/bazelruleclassprovider-0.25.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/bazel/bazelruleclassprovider-0.25.patch b/var/spack/repos/builtin/packages/bazel/bazelruleclassprovider-0.25.patch new file mode 100644 index 0000000000..0d68cd98d9 --- /dev/null +++ b/var/spack/repos/builtin/packages/bazel/bazelruleclassprovider-0.25.patch @@ -0,0 +1,16 @@ +--- a/src/main/java/com/google/devtools/build/lib/bazel/rules/BazelRuleClassProvider.java ++++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/BazelRuleClassProvider.java +@@ -181,6 +181,13 @@ public class BazelRuleClassProvider { + env.put("PATH", null); + } + ++ Map<String, String> spackEnv = System.getenv(); ++ for (String envName : spackEnv.keySet()) { ++ if (envName.startsWith("SPACK_")) { ++ env.put(envName, spackEnv.get(envName)); ++ } ++ } ++ + // Shell environment variables specified via options take precedence over the + // ones inherited from the fragments. In the long run, these fragments will + // be replaced by appropriate default rc files anyway. |