Skip to content

add gnu make 4.2.1#84

Open
cosmicexplorer wants to merge 1 commit into
pantsbuild:masterfrom
cosmicexplorer:add-make
Open

add gnu make 4.2.1#84
cosmicexplorer wants to merge 1 commit into
pantsbuild:masterfrom
cosmicexplorer:add-make

Conversation

@cosmicexplorer

Copy link
Copy Markdown
Contributor

We need to provide gnu make in order to build 3rdparty conan dependencies. This script produces a binary which works to fix the remaining CI failure in pantsbuild/pants#6486, by providing a version of make which the conan pex can then invoke along with cmake (just using the cmake binary already in this repo).

@cosmicexplorer cosmicexplorer mentioned this pull request Oct 22, 2018
# Default to 2 parallel jobs if unspecified.
readonly SUBPROC_MAKE_JOBS="${SUBPROC_MAKE_JOBS:-2}"

case "$(uname)" in

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script appears to be identical to build-support/bin/make/linux/x86_64/4.2.1/build-make.sh and yet still attempts to handle both linux and osx. Can there just be 1 script or else 2 different - smaller - scripts?

@cosmicexplorer cosmicexplorer Oct 22, 2018

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There can indeed be 1 or 2 such scripts (not sure of the ideal number yet), and there is no rush or other reason to justify not attempting to address this somewhat here!

}

function build_make_with_configure {
local -a configure_cmd_line=("$@")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a good deal of ceremony over just a single line of "$@".

@cosmicexplorer cosmicexplorer Oct 22, 2018

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was pilfered from the gcc script, which requires --host and --target arguments to ./configure, in addition to being written as the first attempt of the new variety of binaries scripts (and therefore a bit clunky and overgeneralized). I will not look into fixing that for gcc in this PR, but this indirection has no utility here, I think.

@stuhood stuhood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from my perspective: successfully built on both osx and linux.

@stuhood

stuhood commented Oct 22, 2018

Copy link
Copy Markdown
Member

Let me know when you're ready to merge (or merge and then ping me) please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants