Skip to content

Commit

Permalink
cmake: Set CMAKE_C_COMPILER_AR and CMAKE_C_COMPILER_RANLIB
Browse files Browse the repository at this point in the history
  • Loading branch information
thrimbor committed Jan 8, 2025
1 parent 3a29e28 commit c3d3af7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions share/toolchain-nxdk.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -out:<TARGET> <LINK_LIBRARIES>")
# Keep in sync with include paths in bin/nxdk-cc
Expand Down

0 comments on commit c3d3af7

Please sign in to comment.