Skip to content

Commit

Permalink
Run SWIG in the default environment
Browse files Browse the repository at this point in the history
This avoids failures when swig is build in custom envs e.g. with a
compiler installed into another location (e.g. /opt)
See also bazelbuild/bazel#4053
Patch by @boegel from bazelbuild/bazel#4053 (comment)

Fixes tensorflow#41806
  • Loading branch information
Flamefire committed Aug 15, 2020
1 parent 64dbe97 commit 81e2f63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tensorflow/tensorflow.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1652,6 +1652,7 @@ def _py_wrap_cc_impl(ctx):
args.append(src.path)
outputs = [ctx.outputs.cc_out, ctx.outputs.py_out]
ctx.actions.run(
use_default_shell_env = True,
executable = ctx.executable._swig,
arguments = args,
inputs = inputs,
Expand Down

0 comments on commit 81e2f63

Please sign in to comment.