Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prebuilt hyperfine and sccache binaries #1370

Merged
merged 7 commits into from
Dec 19, 2018
Merged

Conversation

ry
Copy link
Member

@ry ry commented Dec 18, 2018

Use prebuilt sccache in CI

This is the last step necessary so that we can set CARGO_HOME to third_party/rust_crates

@@ -113,8 +113,12 @@ def generate_gn_args(mode):
if "DENO_BUILD_ARGS" in os.environ:
out += os.environ["DENO_BUILD_ARGS"].split()

cacher = prebuilt.load_sccache()
if not os.path.exists(cacher):
Copy link
Member

Choose a reason for hiding this comment

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

I think this branch is unnecessary -- if load_sccache() succeeds then this path will exist.

Copy link
Member

Choose a reason for hiding this comment

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

It'd also be nice if we could somehow move sccache detection out of setup.py entirely. I think the goal should be to not rely on a generated args.gn file eventually. (Not in this patch tho).

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah this branch is never taken, but I thought it would be good to leave it in if someone wanted to add some feature like --no-prebuilt-sscache

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree we should not rely on generated args.gn (other than is_official_release=true) - we can do that now by hard coding a default path to sscache now that we know it's going to be there.

Copy link
Member

@piscisaureus piscisaureus left a comment

Choose a reason for hiding this comment

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

See one comment (setup.py). Otherwise lgtm.

@ry ry merged commit aa66ef9 into denoland:master Dec 19, 2018
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.

None yet

2 participants