From 269634b393554a5502e47cc0cf9a3f63a5856d45 Mon Sep 17 00:00:00 2001 From: Daniel McGregor Date: Thu, 14 Feb 2019 18:42:49 -0600 Subject: clang: stay closer to cmake.bbclass Allow more of the cmake variables coming from the OE environment through, otherwise the release C flags and CXX flags get reset to LLVM's default, which greatly extend build times. Also switch to using cmake.bbclass's do_compile and do_install commands. There's no need to call ninja directly anymore. Signed-off-by: Daniel McGregor --- recipes-devtools/clang/openmp_git.bb | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'recipes-devtools/clang/openmp_git.bb') diff --git a/recipes-devtools/clang/openmp_git.bb b/recipes-devtools/clang/openmp_git.bb index 0afbf97..501ee5a 100644 --- a/recipes-devtools/clang/openmp_git.bb +++ b/recipes-devtools/clang/openmp_git.bb @@ -8,8 +8,6 @@ SECTION = "libs" require clang.inc require common-source.inc -DEPENDS += "ninja-native" - RPROVIDES_${PN} += "libgomp" RPROVIDES_${PN}-dev += "libgomp-dev" @@ -19,7 +17,7 @@ LIC_FILES_CHKSUM = "file://openmp/LICENSE.txt;md5=d75288d1ce0450b28b8d58a284c09c inherit cmake pkgconfig perlnative -EXTRA_OECMAKE = "-G Ninja ${S}/openmp" +OECMAKE_SOURCEPATH = "${S}/openmp" PACKAGECONFIG ?= "ompt-tools" PACKAGECONFIG_remove_arm = "ompt-tools" @@ -28,14 +26,6 @@ PACKAGECONFIG_remove_powerpc = "ompt-tools" PACKAGECONFIG[ompt-tools] = "-DOPENMP_ENABLE_OMPT_TOOLS=ON,-DOPENMP_ENABLE_OMPT_TOOLS=OFF," -do_compile() { - ninja ${PARALLEL_MAKE} -} - -do_install() { - DESTDIR=${D} ninja ${PARALLEL_MAKE} install -} - FILES_SOLIBSDEV = "" FILES_${PN} += "${libdir}/lib*${SOLIBSDEV}" INSANE_SKIP_${PN} = "dev-so" -- cgit v1.2.3-54-g00ecf