Skip to content

Commit 249054e

Browse files
authored
Don't use lib64 dir for libxml2 (#617)
Currently LLDB binaries as-is don't work, and this should fix them.
1 parent cc5c4c9 commit 249054e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cmake/wasi-sdk-toolchain.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ if(WASI_SDK_LLDB)
173173
list(APPEND libxml_cmake_args -DLIBXML2_WITH_ICONV=OFF)
174174
endif()
175175

176+
# Our AlmaLinux:8 container ends up using `lib64` instead of `lib` by default
177+
# which doesn't match LLVM, so specifically use the same dir as LLVM.
178+
if (CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
179+
list(APPEND libxml_cmake_args -DCMAKE_INSTALL_LIBDIR=lib)
180+
endif()
181+
176182
if (WASI_SDK_LIBXML2)
177183
ExternalProject_Add(libxml2
178184
URL https://download.gnome.org/sources/libxml2/2.15/libxml2-2.15.2.tar.xz

0 commit comments

Comments
 (0)