From 40329916fffdfe96be6e7e5b3db5e0e01d7cf8ee Mon Sep 17 00:00:00 2001 From: Ashcon Partovi Date: Wed, 30 Apr 2025 16:11:46 -0700 Subject: [PATCH] maybe fix rust/musl? --- cmake/targets/BuildLolHtml.cmake | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cmake/targets/BuildLolHtml.cmake b/cmake/targets/BuildLolHtml.cmake index c30eaf1e3a..04a080ae0e 100644 --- a/cmake/targets/BuildLolHtml.cmake +++ b/cmake/targets/BuildLolHtml.cmake @@ -18,10 +18,12 @@ endif() set(LOLHTML_LIBRARY ${LOLHTML_BUILD_PATH}/${RUST_TARGET}/${LOLHTML_BUILD_TYPE}/${CMAKE_STATIC_LIBRARY_PREFIX}lolhtml${CMAKE_STATIC_LIBRARY_SUFFIX}) -set(LOLHTML_BUILD_ARGS - --target-dir ${BUILD_PATH}/lolhtml - --target ${RUST_TARGET} -) +set(LOLHTML_BUILD_ARGS --target-dir ${BUILD_PATH}/lolhtml) + +# For some reason, this doesn't work on musl? +if(CMAKE_CROSSCOMPILING OR NOT ABI STREQUAL "musl") + list(APPEND LOLHTML_BUILD_ARGS --target ${RUST_TARGET}) +endif() if(RELEASE) list(APPEND LOLHTML_BUILD_ARGS --release)