mirror of
http://code.qt.io/yocto/meta-qt6.git
synced 2026-01-01 13:58:07 +00:00
qttools: adapt to clang from oe-core
Clang recipes have been moved from meta-clang layer to oe-core in whinlatter. Adapt qttools to use clang by default also without meta-clang layer, but with the clang recipes from oe-core. Pick-to: 6.9 6.8 Change-Id: I031ac3945100cf74d922d71690296c2ddc2cdc58 Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
This commit is contained in:
parent
f29c54d40b
commit
5af1d30b38
|
|
@ -25,10 +25,13 @@ SRC_URI += " \
|
|||
|
||||
DEPENDS += "qtbase qtdeclarative qttools-native"
|
||||
|
||||
QTTOOLS_USE_CLANG ?= "${@ 'clang' if bb.utils.vercmp_string_op(d.getVar('LLVMVERSION') or '', '17', '>') else ''}"
|
||||
CAN_USE_CLANG = "${@True if bb.utils.vercmp_string_op(d.getVar('LLVMVERSION') or '', '17', '>') or \
|
||||
os.path.exists(os.path.join(d.getVar('COREBASE'),'meta/recipes-devtools/clang')) else False}"
|
||||
CAN_USE_CLANG:mingw32 = "False"
|
||||
|
||||
QTTOOLS_USE_CLANG ?= "${@ 'clang' if bb.utils.to_boolean(d.getVar('CAN_USE_CLANG')) else ''}"
|
||||
PACKAGECONFIG:class-native = "${QTTOOLS_USE_CLANG}"
|
||||
PACKAGECONFIG:class-nativesdk = "${QTTOOLS_USE_CLANG}"
|
||||
PACKAGECONFIG:remove:mingw32 = "${QTTOOLS_USE_CLANG}"
|
||||
|
||||
PACKAGECONFIG[clang] = "-DFEATURE_clang=ON,-DFEATURE_clang=OFF,clang"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user