Skip to content

Commit e07bea1

Browse files
authored
Merge pull request #5601 from martin-frbg/issue5336-2
Use linker response files with CMake on all Apple hardware
2 parents 01cc6df + e04df19 commit e07bea1

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
@@ -308,8 +308,8 @@ if (USE_OPENMP)
308308
endif()
309309
endif()
310310

311-
# Fix "Argument list too long" for macOS with POWERPC or Intel CPUs
312-
if(APPLE AND (NOT CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64"))
311+
# Fix "Argument list too long" for macOS - mostly seen with older OS versions on POWERPC or Intel CPUs
312+
if(APPLE)
313313
# Use response files
314314
set(CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS 1)
315315
# Always build static library first

0 commit comments

Comments
 (0)