We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49e8d27 commit 70f3d82Copy full SHA for 70f3d82
1 file changed
cmake/wasi-sdk-toolchain.cmake
@@ -229,6 +229,13 @@ ExternalProject_Add(llvm-build
229
-DLLVM_DEFAULT_TARGET_TRIPLE=wasm32-wasip1
230
-DLLVM_INSTALL_BINUTILS_SYMLINKS=TRUE
231
-DLLVM_ENABLE_LIBXML2=OFF
232
+ # LLDB's `FindLibXml2` module determines the libxml2 version solely via
233
+ # pkg-config (`PC_LIBXML_VERSION`) and rejects it if the version can't be
234
+ # found. The libxml2 we build above installs into `${wasi_tmp_install}`,
235
+ # which isn't on the default pkg-config search path, so point pkg-config at
236
+ # it via `CMAKE_PREFIX_PATH` to let LLVM's check succeed.
237
+ -DCMAKE_PREFIX_PATH=${wasi_tmp_install}
238
+ -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON
239
# Pass `-s` to strip symbols by default and shrink the size of the
240
# distribution
241
-DCMAKE_EXE_LINKER_FLAGS=-s
0 commit comments