mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
To compile flatbuffers definition Bazel starts the flatbuffers compiler flatc which is potentially built using a custom toolchain and hence requires a set up LD_LIBRARY_PATH. Ommitting the `use_default_shell_env` (defaulting to false) clears the whole environment and the binary may try to use older system libs such as /lib64/libstdc++.so causing it to fail in case it is (much) older than the used libstdc++ from the custom toolchain which is very common in HPC environments. Hence I added `use_default_shell_env = True` as already done in e.g. `_local_genrule_impl`.