You are not logged in.
I want to set the thread count (-j option) for building packages with yay. What is the command line option to set the thread count (or PKGBUILD flags in general) for yay packages?
Offline
man makepkg.conf
. MAKEFLAGS
Offline
There is no such thing as a "yay package". Please do not use yay until you understand how the AUR works.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
@skunktrader Thanks. Could you please tell me how to pass MAKEFLAGS to yay via command line?
Offline
see tips and trick in the wiki for makepkg, and also makepkg.conf(5)
Offline
I tried
yay -S --mflags j12 <package_name>
But it doesn't seem to work.
However, if I use --editmenu and add -j12 option to make through external editor, it works.
But I don't want to make changes using every time the package files need to be compiled.
Offline
Is there a reason you want to avoid using makepkg.conf?
Offline
yay -S --mflags j12 <package_name>
I suppose it should be "-j12", did you miss the "-"?
[...] But I don't want to make changes using every time the package files need to be compiled.
Did you even read the links I posted in #5?
Offline
Did you even read the links I posted in #5?
Yes, I had read it. But thought makepkg.conf man page was about makepkg options. But after prodding from you, I read it once again and found out that I can configure standard make options via .makepkg.conf in the home folder.
This solves my problem. Thank you very much.
Offline