Fix debug builds on macOS arm64 (#13952)

Co-authored-by: Ashcon Partovi <ashcon@partovi.net>
This commit is contained in:
Meghan Denny
2024-09-13 16:01:17 -07:00
committed by GitHub
parent 44841d8924
commit 8b1c53dd36

View File

@@ -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