From 696d518b9b0bafb9fbe66ae6c85440c5edd73532 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Wed, 8 Jan 2025 23:40:22 +0100 Subject: [PATCH] cmake: Set CMAKE_C_COMPILER_AR and CMAKE_C_COMPILER_RANLIB --- share/toolchain-nxdk.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/toolchain-nxdk.cmake b/share/toolchain-nxdk.cmake index 030fbeaf3..b0c047837 100644 --- a/share/toolchain-nxdk.cmake +++ b/share/toolchain-nxdk.cmake @@ -19,6 +19,8 @@ set(WIN32 1) set(NXDK 1) set(CMAKE_C_COMPILER "${NXDK_DIR}/bin/${TOOLCHAIN_PREFIX}-cc") +set(CMAKE_C_COMPILER_AR "llvm-ar") +set(CMAKE_C_COMPILER_RANLIB "llvm-ranlib") set(CMAKE_C_STANDARD_LIBRARIES "${NXDK_DIR}/lib/libwinapi.lib ${NXDK_DIR}/lib/xboxkrnl/libxboxkrnl.lib ${NXDK_DIR}/lib/libxboxrt.lib ${NXDK_DIR}/lib/libpdclib.lib ${NXDK_DIR}/lib/libnxdk_hal.lib ${NXDK_DIR}/lib/libnxdk.lib ${NXDK_DIR}/lib/nxdk_usb.lib") #"${CMAKE_CXX_STANDARD_LIBRARIES_INIT}" set(CMAKE_C_LINK_EXECUTABLE "${NXDK_DIR}/bin/${TOOLCHAIN_PREFIX}-link -out: ") # Keep in sync with include paths in bin/nxdk-cc