In the env attribute of cc_binary or sh_binary locations get expanded. This does not happen for native_binary which is unexpected.
Usage example:
native_binary(
name = "my_example",
src = "//src/example",
data = [
":my_shared_lib",
],
env = {
"LD_DEBUG": "libs",
"LD_LIBRARY_PATH": "$(rootpath :my_shared_lib)",
},
)
Also it would be great to have the possibility to extend a path variable instead of overwriting it (env_inherit?).
In the
envattribute ofcc_binaryorsh_binarylocations get expanded. This does not happen fornative_binarywhich is unexpected.Usage example:
Also it would be great to have the possibility to extend a path variable instead of overwriting it (
env_inherit?).