Skip to content

Commit

Permalink
Let make build in BUILD_TMPDIR (#818)
Browse files Browse the repository at this point in the history
configure_make already used BUILD_TMPDIR whereas make did not.
  • Loading branch information
fmeum authored Nov 24, 2021
1 parent 7205619 commit 1a262c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions foreign_cc/make.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,9 @@ def _create_make_script(configureParameters):
make_commands = []
prefix = "{} ".format(expand_locations(ctx, attrs.tool_prefix, data)) if attrs.tool_prefix else ""
for target in ctx.attr.targets:
make_commands.append("{prefix}{make} -C $$EXT_BUILD_ROOT$$/{root} {target} {args} PREFIX={install_prefix}".format(
make_commands.append("{prefix}{make} -C $$BUILD_TMPDIR$$ {target} {args} PREFIX={install_prefix}".format(
prefix = prefix,
make = attrs.make_path,
root = root,
args = args,
target = target,
install_prefix = ctx.attr.install_prefix,
Expand Down

0 comments on commit 1a262c9

Please sign in to comment.