Comments (8)
Building on a phone versus building on a laptop or server are two completely different use cases. The script aims to be as quick as possible which means building with as many compile and link jobs as ninja feels is reasonable by default. The -D
option is there if it needs to be lowered but I disagree with setting any value to those options by default, especially given that LLVM doesn't.
from tc-build.
There is no default value of LLVM_PARALLEL_COMPILE_JOBS
or LLVM_PARALLEL_LINK_JOBS
:
https://llvm.org/docs/CMake.html#llvm-specific-variables
tc-build does not touch that value. I do not know what ninja
's default parallelism but they do not recommend setting a -j
value so it seems like they have their own heuristic.
from tc-build.
OK, I see that commit was for custom cmake options passing to tc-build.
from tc-build.
I suppose this is resolved then? Closing.
from tc-build.
IMHO - not really resolved.
I rebuild with safe parallel jobs setting for compile (=2) and link (=1).
It increased my build-time from usually 03:15 to 03:25 (mm:ss) - means 10 minutes.
The initial (Chinese) reporter was building with tc-build on an embedded system and had failures.
We should be user-friendly and offer/set safe settings.
My €0,02.
from tc-build.
One question:
When I pass compile/link jobs options and do a thinlto+pgo build - is that passed to stage2 and stage3?
from tc-build.
Yes, custom values are passed to all cmake invocations.
from tc-build.
from tc-build.
Related Issues (20)
- BOLT clang HOT 38
- investigate --symbol-ordering-file HOT 3
- investigate ELFHack HOT 5
- -fno-semantic-interposition and -Bsymbolic-functions HOT 2
- CMake build error in ./build-llvm.py on Ubuntu Bionic HOT 1
- [Question] Does build-llvm.py need an update for clang-14? HOT 3
- Kernel building script not working for ARM64 HOT 2
- question: how to find out why a linking error happens? HOT 2
- [BOLT] Minimum hardware requirements? HOT 10
- download llvm from tarball's rather than shallow clone? HOT 1
- Ability to specify llvm sha HOT 1
- Building kernels: Show Linux version (when passing -L option) HOT 3
- Use sccache to speed up builds HOT 5
- Bump binutils to version 2.39
- Good revision broken on arm64 HOT 4
- Display total build-time HOT 6
- build-binutils.py: Do not build texinfo docs HOT 3
- Print total disc-usage in MiB HOT 4
- Alpine/Musl segfault when building BOLT in stage 3 HOT 7
- ld.gold and ld.bfd HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tc-build.