Skip to content

Commit 685676b

Browse files
committed
CMake: don't hardcode system arch
1 parent fa46dce commit 685676b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,8 @@ if(yyjson_FOUND)
663663
target_link_libraries(libfastfetch PRIVATE yyjson)
664664
endif()
665665

666-
if(LINUX AND EXISTS "/lib/ld-musl-x86_64.so.1")
667-
execute_process(COMMAND "/lib/ld-musl-x86_64.so.1"
666+
if(LINUX AND EXISTS "/lib/ld-musl-${CMAKE_HOST_SYSTEM_PROCESSOR}.so.1")
667+
execute_process(COMMAND "/lib/ld-musl-${CMAKE_HOST_SYSTEM_PROCESSOR}.so.1"
668668
ERROR_VARIABLE LD_MUSL_VERSION)
669669
string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" LD_MUSL_VERSION "${LD_MUSL_VERSION}")
670670
if(NOT LD_MUSL_VERSION STREQUAL "")

0 commit comments

Comments
 (0)