-
Couldn't load subscription status.
- Fork 471
Rework Makefile; dependency tracking #7975
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
Conversation
| process.env.CXXFLAGS = "-flto"; | ||
| } | ||
| execSync(buildCommand, { stdio: [0, 1, 2], cwd: ninjaDir }); | ||
| execSync("strip ninja", { stdio: [0, 1, 2], cwd: ninjaDir }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed anymore, done by the Makefile / copyExes.js anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested this, looks good from afar.
Is there any opportunity to use moar make in our ci.yml file?
Just curious.
| make artifacts | ||
|
|
||
| # Format code | ||
| make format |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Total nitpick, but how do we feel about make fmt? It is cargo fmt and dune fmt as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But rescript format 🙂
I would like to investigate that separately later. There are a few differences, like release vs. debug build and static build with musl libc for Linux. |
rescript
@rescript/darwin-arm64
@rescript/darwin-x64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
|
@codex review |
|
To use Codex here, create a Codex account and connect to github. |
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Reworked the Makefile to orchestrate the various builds so that:
makeis sufficient to runyarn, build the compiler, ninja, rewatch, copy those exes to the platform bin dir and build runtime/stdlib.This is a huge DX improvement and makes things much less confusing for our AI agents, too.
There is still more cleanup one could do regarding the clean and test targets, leaving that for future PRs.