On 03/22/20 00:03, Rebecca Cran wrote:
> Thank you. I think we probably do want to detect the number of threads
> available: I'll see if I can work on that.

In a Linux environment, you can run "getconf _NPROCESSORS_ONLN".

In fact that's how I build the native BaseTools on my laptop:

$ . edksetup.sh
$ nice make -C "$EDK_TOOLS_PATH" -j $(getconf _NPROCESSORS_ONLN)

And from a cursory web search:

  https://stackoverflow.com/a/23569003

it is supposed to work on macOS too, and with a small tweak, on the BSDs
as well.

Thanks
Laszlo


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#56103): https://edk2.groups.io/g/devel/message/56103
Mute This Topic: https://groups.io/mt/72437405/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to