Skip to content

Commit 5aa483e

Browse files
authored
Use response files on old PPC/Intel Macs in single-target builds too
1 parent 12591ca commit 5aa483e

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
@@ -305,8 +305,8 @@ if (USE_OPENMP)
305305
endif()
306306
endif()
307307

308-
# Fix "Argument list too long" for macOS with Intel CPUs and DYNAMIC_ARCH turned on
309-
if(APPLE AND DYNAMIC_ARCH AND (NOT CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64"))
308+
# Fix "Argument list too long" for macOS with POWERPC or Intel CPUs
309+
if(APPLE AND (NOT CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64"))
310310
# Use response files
311311
set(CMAKE_C_USE_RESPONSE_FILE_FOR_OBJECTS 1)
312312
# Always build static library first

0 commit comments

Comments
 (0)