summaryrefslogtreecommitdiffstats
path: root/meta/classes/meson.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/meson.bbclass')
-rw-r--r--meta/classes/meson.bbclass9
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass
index 91ac652651..cd3497a802 100644
--- a/meta/classes/meson.bbclass
+++ b/meta/classes/meson.bbclass
@@ -40,6 +40,11 @@ EXTRA_OEMESON += "${PACKAGECONFIG_CONFARGS}"
40MESON_CROSS_FILE = "" 40MESON_CROSS_FILE = ""
41MESON_CROSS_FILE_class-target = "--cross-file ${WORKDIR}/meson.cross" 41MESON_CROSS_FILE_class-target = "--cross-file ${WORKDIR}/meson.cross"
42 42
43CCOMPILER ?= "gcc"
44CXXCOMPILER ?= "g++"
45CCOMPILER_toolchain-clang = "clang"
46CXXCOMPILER_toolchain-clang = "clang++"
47
43def meson_array(var, d): 48def meson_array(var, d):
44 return "', '".join(d.getVar(var).split()).join(("'", "'")) 49 return "', '".join(d.getVar(var).split()).join(("'", "'"))
45 50
@@ -49,8 +54,8 @@ do_write_config() {
49 # This needs to be Py to split the args into single-element lists 54 # This needs to be Py to split the args into single-element lists
50 cat >${WORKDIR}/meson.cross <<EOF 55 cat >${WORKDIR}/meson.cross <<EOF
51[binaries] 56[binaries]
52c = '${HOST_PREFIX}gcc' 57c = '${HOST_PREFIX}${CCOMPILER}'
53cpp = '${HOST_PREFIX}g++' 58cpp = '${HOST_PREFIX}${CXXCOMPILER}'
54ar = '${HOST_PREFIX}ar' 59ar = '${HOST_PREFIX}ar'
55ld = '${HOST_PREFIX}ld' 60ld = '${HOST_PREFIX}ld'
56strip = '${HOST_PREFIX}strip' 61strip = '${HOST_PREFIX}strip'