From 6d87780ad605495f9006aacde04daf614003ed6a Mon Sep 17 00:00:00 2001 From: Derek Bruening Date: Tue, 11 Feb 2025 15:37:00 -0500 Subject: [PATCH] i#6326 M1 hang: Work around M1 build hang Works around a Mac M1 build hang on assembly configuration. Tested on a local M1 machine where CMake configuration now finishes. Issue: #6326 --- make/cpp2asm_support.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/make/cpp2asm_support.cmake b/make/cpp2asm_support.cmake index e9b1e77d8a7..faff09612ba 100644 --- a/make/cpp2asm_support.cmake +++ b/make/cpp2asm_support.cmake @@ -178,6 +178,8 @@ if (NOT "${CMAKE_GENERATOR}" MATCHES "Visual Studio") # NASM support was added in 2.8.3. It clears ASM_DIALECT for us. enable_language(ASM_NASM) else (APPLE AND NOT AARCH64) + # XXX i#6326: Avoid a cmake hang by setting this. + set(CMAKE_ASM_LINKER_DEPFILE_SUPPORTED TRUE) enable_language(ASM) endif () endif ()