Skip to content

createrelease: use -j12 to build faster, build with -O2#5798

Merged
danmar merged 1 commit into
cppcheck-opensource:mainfrom
cppchecksolutions:release-createrelease
Dec 23, 2023
Merged

createrelease: use -j12 to build faster, build with -O2#5798
danmar merged 1 commit into
cppcheck-opensource:mainfrom
cppchecksolutions:release-createrelease

Conversation

@danmar

@danmar danmar commented Dec 23, 2023

Copy link
Copy Markdown
Collaborator

No description provided.

@danmar
danmar merged commit 0fec74d into cppcheck-opensource:main Dec 23, 2023
@firewave

firewave commented Jan 4, 2024

Copy link
Copy Markdown
Collaborator

That should use $(nproc) so it will use the actual available cores.

@danmar

danmar commented Jan 4, 2024

Copy link
Copy Markdown
Collaborator Author

That should use $(nproc) so it will use the actual available cores.

however I don't want to use all cores. that can affect my user experience negatively when I do something with the computer meanwhile..

@firewave

firewave commented Jan 4, 2024

Copy link
Copy Markdown
Collaborator

You can use something like this to just use 80% of the cores:

np=$(nproc)
np=$((np * 8))
np=$((np / 10))

@danmar
danmar deleted the release-createrelease branch October 26, 2024 17:52
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.

2 participants