Skip to content

Commit

Permalink
Fix debug builds on macOS arm64 (oven-sh#13952)
Browse files Browse the repository at this point in the history
Co-authored-by: Ashcon Partovi <[email protected]>
  • Loading branch information
nektro and Electroid authored Sep 13, 2024
1 parent 44841d8 commit 8b1c53d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/CompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b1c53d

Please sign in to comment.