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

Parallelize the builds of dependencies #431

Merged
merged 1 commit into from
Jun 21, 2018
Merged

Parallelize the builds of dependencies #431

merged 1 commit into from
Jun 21, 2018

Conversation

thomasetter
Copy link

@thomasetter thomasetter commented Jun 20, 2018

This commit just sets the number of jobs used by make to the number of cpus in the system. This greatly accelerated builds on my system.
I might have more cores than most, but with all current-gen laptops having at least 8 (hyper-/SMT) threads, this should give a nice boost for most users.

TESTED:
git clone https://github.com/thomasetter/DroneCore.git --recurse-submodules -j 20 && cd DroneCore/ && mkdir build && cd build && cmake .. && make -j12

Copy link
Collaborator

@JonasVautherin JonasVautherin left a comment

Choose a reason for hiding this comment

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

Working for me. Thanks!

@JonasVautherin JonasVautherin merged commit d1a5342 into mavlink:develop Jun 21, 2018
@julianoes
Copy link
Collaborator

Thanks @thomasetter. However, the recommended way to build is just make which creates the cmake build folder and does make -j8.

https://github.com/dronecore/DroneCore/blob/d1a5342637e49c204a96ed7aba74eba112117405/Makefile#L22
https://github.com/dronecore/DroneCore/blob/d1a5342637e49c204a96ed7aba74eba112117405/Makefile#L47-L67

Since we were considering to move away from the magic Makefile to plain cmake your change is great though.

@JonasVautherin
Copy link
Collaborator

Oh, I had not realized that. Thanks Julian!

rt-2pm2 pushed a commit to rt-2pm2/DronecodeSDK that referenced this pull request Nov 27, 2018
Parallelize the builds of dependencies
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