-
Notifications
You must be signed in to change notification settings - Fork 103
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
Update Toolchain Build Script #412
base: master
Are you sure you want to change the base?
Conversation
@@ -16,7 +16,7 @@ set -eu | |||
|
|||
TARGET=arm-none-eabi | |||
PREFIX="${PWD}/install" # or the directory where the toolchain should be installed in | |||
PARALLEL="${PARALLEL--j4}" # or "-j<number of build jobs>" | |||
PARALLEL="${PARALLEL--$(nproc --all)}" # or "-j<number of build jobs>" |
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.
nproc
isn't a thing on macOS (unless coreutils
is installed, apparently), but from what I read, this should work:
getconf _NPROCESSORS_ONLN
. You also want to keep the j
in there.
How? The PARALLEL change looks good, but the |
If I compile for other architectures, by changing the |
That's not meant to be changed. Maybe that should be made clear in the file.
Ok, that's a bug. |
I am aware of that, I was trying to build a toolchain for |
Right. That won't really work, the built libraries (libgcc, newlib) won't be compatible with linux. |
I learned that the hard way. |
Uses more threads, and fixes a "file not found error" with newlib