Set MAKE env var (#638)

* Set MAKE env var

* Update foreign_cc/private/configure_script.bzl

Co-authored-by: UebelAndre <github@uebelandre.com>

Co-authored-by: UebelAndre <andre.brisco@gmail.com>
Co-authored-by: UebelAndre <github@uebelandre.com>
This commit is contained in:
James Sharpe 2021-05-09 23:44:57 +01:00 committed by GitHub
parent 2baa2e8948
commit cef5ee61ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -106,6 +106,7 @@ def _create_configure_script(configureParameters):
autogen_options = ctx.attr.autogen_options,
autogen_env_vars = ctx.attr.autogen_env_vars,
make_commands = make_commands,
make_path = attrs.make_path,
)
return define_install_prefix + configure

View File

@ -27,6 +27,7 @@ def create_configure_script(
autogen_command,
autogen_options,
autogen_env_vars,
make_path,
make_commands):
env_vars_string = _get_env_vars(workspace_name, tools, flags, user_vars, deps, inputs)
@ -41,6 +42,8 @@ def create_configure_script(
root_path = "$$BUILD_TMPDIR$$"
configure_path = "{}/{}".format(root_path, configure_command)
script.append("##export_var## MAKE {}".format(make_path))
if autogen:
# NOCONFIGURE is pseudo standard and tells the script to not invoke configure.
# We explicitly invoke configure later.