1

I am trying to develop a toolchain for wllvm (whole program LLVM) on bazel 3.7 following the tutorial (link to the tutorial). A problem I have is I have to pass an environment variable (LLVM_COMPILER) to wllvm. Can you possibly provide more details here or a concrete example? Is it possible to directly configure the environment variable in .bazelrc?

Thanks a lot!

Vertexwahn
  • 7,709
  • 6
  • 64
  • 90
Ziwen Wan
  • 21
  • 1

1 Answers1

1

If it is ok to set an environment variable for each Bazel action, then use --action-env flag

# .bazelrc
build --action_env=LLVM_COMPILER=wllvm
slsy
  • 1,257
  • 8
  • 21