bazel: Bump version to 0.21.0#11120
bazel: Bump version to 0.21.0#11120rdbisme wants to merge 4 commits intospack:developfrom rdbisme:bazel
Conversation
tgamblin
left a comment
There was a problem hiding this comment.
@rubendibattista: is there a more standard way to pass environment variables through like this, or is this something we need to work around in Bazel? Is it worth upstreaming a feature to specify env vars that can be passed through?
|
Ehi @tgamblin, I have no idea. I just copied what was there before to make it build. I don't even know why that is needed, I'm not very fluent in Java (and I'm not a lover :)). First thing: why those env vars are needed? |
|
I guess it would be cool to upstream the env var handling in order to avoid patching the java files... But I have no idea on where to start. |
The environment variables are how Spack passes information to the compiler wrappers that it inserts into whatever build system is being used by the package (in this case Bazel). For example, some of the environment variables are used to augment a given compiler invocation to add |
@tgamblin Bazel is something of a special case. Some users implement patches for "in-flux" files using Spack's |
Upstreaming these changes is a longer-term proposition
| ] | ||
|
|
||
| + env = repository_ctx.os.environ | ||
| + if "SPACK_DEPENDENCIES" in env: |
There was a problem hiding this comment.
@rubendibattista what Spack version are you working with? The latest develop version does not use SPACK_DEPENDENCIES so this won't have an effect. There is a SPACK_INCLUDE_DIRS variable.
No description provided.