]> code.ossystems Code Review - openembedded-core.git/commitdiff
cmake-native: Set --parallel for configure
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 18 Dec 2018 09:48:22 +0000 (17:48 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jan 2019 21:14:47 +0000 (21:14 +0000)
This can save do_configure's time from 330s to 60s on my host.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/cmake/cmake-native_3.12.2.bb

index 9a1390f96dfbf2fbafe99048c0dd9752474b9636..2f4ecc4f4cefb10addeaff6fab97a26d3aa46390 100644 (file)
@@ -27,7 +27,9 @@ CMAKE_EXTRACONF = "\
 "
 
 do_configure () {
-       ${S}/configure --verbose --prefix=${prefix} -- ${CMAKE_EXTRACONF}
+       ${S}/configure --verbose --prefix=${prefix} \
+               ${@oe.utils.parallel_make_argument(d, '--parallel=%d')} \
+               -- ${CMAKE_EXTRACONF}
 }
 
 do_compile() {