Browse Source

Use response files on old PPC/Intel Macs in single-target builds too

pull/5336/head
Martin Kroeker GitHub 7 months ago
parent
commit
5aa483e16c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      CMakeLists.txt

+ 2
- 2
CMakeLists.txt View File

@@ -305,8 +305,8 @@ if (USE_OPENMP)
endif()
endif()

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


Loading…
Cancel
Save