From ad7a4252ced870591777b0b394ca5460c2f5a19e Mon Sep 17 00:00:00 2001 From: John Panos Date: Wed, 13 Nov 2024 09:20:43 -0800 Subject: [PATCH 1/2] Disable dependency file generation This is because ld64 in cctools does not support --dependency-file flag --- src/CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 648173c1b..7c1508c75 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -9,6 +9,20 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") include(mig) include(pyc) +# Force linker settings to match 3.30.5 behavior +set(CMAKE_CXX_LINKER_DEPFILE_SUPPORTED FALSE) +set(CMAKE_C_LINKER_DEPFILE_SUPPORTED FALSE) +set(CMAKE_CXX_LINK_DEPENDS_USE_LINKER FALSE) +set(CMAKE_C_LINK_DEPENDS_USE_LINKER FALSE) + +set(CMAKE_CXX_LINK_LIBRARY_USING_WHOLE_ARCHIVE_SUPPORTED FALSE) +set(CMAKE_C_LINK_LIBRARY_USING_WHOLE_ARCHIVE_SUPPORTED FALSE) + +set(CMAKE_CXX_LINKER_INFORMATION_LOADED FALSE) +set(CMAKE_C_LINKER_INFORMATION_LOADED FALSE) +set(CMAKE_CXX_USE_LINKER_INFORMATION FALSE) +set(CMAKE_C_USE_LINKER_INFORMATION FALSE) + # # start core components # From 8588308eec9aae3e114ca2dae30544389c990b8c Mon Sep 17 00:00:00 2001 From: "Thomas A." Date: Wed, 13 Nov 2024 13:43:05 -0800 Subject: [PATCH 2/2] Add Explantion For Disabling Dependency File Support With The Linker --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7c1508c75..5c924b34d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -10,6 +10,7 @@ include(mig) include(pyc) # Force linker settings to match 3.30.5 behavior +# Apple's ld64 in cctools does not support the `--dependency-file` flag set(CMAKE_CXX_LINKER_DEPFILE_SUPPORTED FALSE) set(CMAKE_C_LINKER_DEPFILE_SUPPORTED FALSE) set(CMAKE_CXX_LINK_DEPENDS_USE_LINKER FALSE)