I depend on lot of 3rd party libraries which I download and build using `repository_rule` and `ctx.execute(build_script)`, and then I wrap the generated files into `cc_library` targets.
That all works great except when using different toolchains. It seems that some env. variables are picked inside the build script (like `CXX`), but some aren't - like `LDFLAGS` (my problem right now: C++ stdlib when using clang).
It's easy enough to do shell magic and generate environment based on the value of CXX, but that's not the general solution. I would like to generate all these values inside Skylark and pass it to the ctx.execute via `env` parameter. Is there an easy way to generate "make" environment from the current toolchain?
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/05da6d20-d7dc-4de5-acf0-6578cd47a64f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/f10ffe52-aeb3-4279-9d2e-c2faaf173b2a%40googlegroups.com.