Use linker response files on all Apple hardware

This commit is contained in:
Martin Kroeker
2026-01-12 20:54:51 +01:00
committed by GitHub
parent 01cc6df92e
commit e04df1941d

View File

@@ -308,8 +308,8 @@ if (USE_OPENMP)
endif()
endif()
# Fix "Argument list too long" for macOS with POWERPC or Intel CPUs
if(APPLE AND (NOT CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64"))
# Fix "Argument list too long" for macOS - mostly seen with older OS versions on POWERPC or Intel CPUs
if(APPLE)
# Use response files
set(CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS 1)
# Always build static library first