Make “make” default to “make -j 8”

前端 未结 8 1080
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-28 20:00

Is there a way that I can make

$ make

default to:

$ make -j 8

?

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-28 20:29

    If you are using the command line you can do:

    alias make='make -j 8'
    

    This will be temporary, to make it permanent you need to add it to .bashrc

    Read here: http://www.linfo.org/make_alias_permanent.html

提交回复
热议问题