From 8b1c53dd36acc53871efe41a1f71373b22e9dfbf Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Fri, 13 Sep 2024 16:01:17 -0700 Subject: [PATCH] Fix debug builds on macOS arm64 (#13952) Co-authored-by: Ashcon Partovi --- cmake/CompilerFlags.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/CompilerFlags.cmake b/cmake/CompilerFlags.cmake index 34e5e079ae..edabde934b 100644 --- a/cmake/CompilerFlags.cmake +++ b/cmake/CompilerFlags.cmake @@ -153,7 +153,9 @@ register_compiler_flags( /Gw ${WIN32} ) -if(UNIX) +# having this enabled in debug mode on macOS >=14 causes libarchive to fail to configure with the error: +# > pid_t doesn't exist on this platform? +if((DEBUG AND LINUX) OR ((NOT DEBUG) AND UNIX)) register_compiler_flags( DESCRIPTION "Emit an address-significance table" -faddrsig