jobs.mk automates -j$JOB_MAX and capturing build log based on target.
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 51065 Build 47956: arc lint + arc unit
Event Timeline
Makefile | ||
---|---|---|
122 | I took the preceding comment as general info for the whole makefile? | |
share/mk/jobs.mk | ||
34 | You could do it either way - we do it in env, but you could just as easily put something in local.sys.mk or any other makefile via sys.mk FYI in the past when we had shared build machines the logic to set JOB_MAX took into account how many builds were already running on a machine. | |
37 | :gmtime is a bmake modifier, the above is equivalent to doing strftime %s |
OK. I'm a little nervous about -j 8 being the default. Isn't there some way that the default could be derived from hw.ncpu?
And cool about the gmtime... I learned a thing.