]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
configs/meson: disable hexagon idef-parser for emscripten builds
authorBrian Cain <brian.cain@oss.qualcomm.com>
Sun, 28 Jun 2026 19:03:58 +0000 (12:03 -0700)
committerBrian Cain <brian.cain@oss.qualcomm.com>
Mon, 29 Jun 2026 13:02:59 +0000 (06:02 -0700)
The idef-parser is a native build tool that requires glib-2.0 on the
build machine. In emscripten cross builds, emconfigure sets
PKG_CONFIG_LIBDIR to emscripten's sysroot which prevents native
pkg-config from finding system-installed packages. Disable idef-parser
by default for emscripten since the wasm target does not need it.

Reviewed-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
configs/meson/emscripten.txt

index 4230e88005f6739cc801d06d132603e183d7e975..56c39763bb92a02a1fbae0deb5d742fbe80242f6 100644 (file)
@@ -6,3 +6,8 @@ objc_args = ['-pthread']
 # configuration so explicitly add the flag here.
 c_link_args = ['-pthread','-sASYNCIFY=1','-sPROXY_TO_PTHREAD=1','-sFORCE_FILESYSTEM','-sALLOW_TABLE_GROWTH','-sTOTAL_MEMORY=2GB','-sWASM_BIGINT','-sEXPORT_ES6=1','-sASYNCIFY_IMPORTS=ffi_call_js','-sEXPORTED_RUNTIME_METHODS=addFunction,removeFunction,TTY,FS']
 cpp_link_args = ['-pthread','-sASYNCIFY=1','-sPROXY_TO_PTHREAD=1','-sFORCE_FILESYSTEM','-sALLOW_TABLE_GROWTH','-sTOTAL_MEMORY=2GB','-sWASM_BIGINT','-sEXPORT_ES6=1','-sASYNCIFY_IMPORTS=ffi_call_js','-sEXPORTED_RUNTIME_METHODS=addFunction,removeFunction,TTY,FS']
+
+[project options]
+# Workaround for failure to find glib-2.0 when building idef parser,
+# this may be a bug in the cross-build setup used by emscripten:
+hexagon_idef_parser = false