diff options
Diffstat (limited to 'meta/classes/meson.bbclass')
-rw-r--r-- | meta/classes/meson.bbclass | 9 |
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}" | |||
40 | MESON_CROSS_FILE = "" | 40 | MESON_CROSS_FILE = "" |
41 | MESON_CROSS_FILE_class-target = "--cross-file ${WORKDIR}/meson.cross" | 41 | MESON_CROSS_FILE_class-target = "--cross-file ${WORKDIR}/meson.cross" |
42 | 42 | ||
43 | CCOMPILER ?= "gcc" | ||
44 | CXXCOMPILER ?= "g++" | ||
45 | CCOMPILER_toolchain-clang = "clang" | ||
46 | CXXCOMPILER_toolchain-clang = "clang++" | ||
47 | |||
43 | def meson_array(var, d): | 48 | def 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] |
52 | c = '${HOST_PREFIX}gcc' | 57 | c = '${HOST_PREFIX}${CCOMPILER}' |
53 | cpp = '${HOST_PREFIX}g++' | 58 | cpp = '${HOST_PREFIX}${CXXCOMPILER}' |
54 | ar = '${HOST_PREFIX}ar' | 59 | ar = '${HOST_PREFIX}ar' |
55 | ld = '${HOST_PREFIX}ld' | 60 | ld = '${HOST_PREFIX}ld' |
56 | strip = '${HOST_PREFIX}strip' | 61 | strip = '${HOST_PREFIX}strip' |