build: build luajit in parallel (#22327)

Add -j flag to the make command for luajit. Cuts down dependency build time by 40% when using the Ninja generator.
This commit is contained in:
dundargoc 2023-02-24 21:17:23 +01:00 committed by GitHub
parent 15cce77b38
commit a601d03112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
else()
set(AMD64_ABI "")
endif()
set(BUILDCMD_UNIX ${MAKE_PRG} CFLAGS=-fPIC
set(BUILDCMD_UNIX ${MAKE_PRG} -j CFLAGS=-fPIC
CFLAGS+=-DLUA_USE_APICHECK
CFLAGS+=-funwind-tables
${NO_STACK_CHECK}