diff --git a/foreign_cc/make.bzl b/foreign_cc/make.bzl index 1f667d80d..19b9aa4b0 100644 --- a/foreign_cc/make.bzl +++ b/foreign_cc/make.bzl @@ -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,