darwin: support Boehm GC (and use by default)

This mostly required some updates to macos-minimal-sdk to add the needed
header files and symbols.
This commit is contained in:
Ayke van Laethem
2025-03-22 13:36:09 +01:00
committed by Ron Evans
parent c1c074f170
commit 95a7d065ca
5 changed files with 20 additions and 6 deletions
+1 -2
View File
@@ -25,6 +25,7 @@ var BoehmGC = Library{
"-DALL_INTERIOR_POINTERS", // scan interior pointers (needed for Go)
"-DIGNORE_DYNAMIC_LOADING", // we don't support dynamic loading at the moment
"-DNO_GETCONTEXT", // musl doesn't support getcontext()
"-DGC_DISABLE_INCREMENTAL", // don't mess with SIGSEGV and such
// Use a minimal environment.
"-DNO_MSGBOX_ON_ERROR", // don't call MessageBoxA on Windows
@@ -68,8 +69,6 @@ var BoehmGC = Library{
"new_hblk.c",
"obj_map.c",
"os_dep.c",
"pthread_stop_world.c",
"pthread_support.c",
"reclaim.c",
}
if strings.Split(target, "-")[2] == "windows" {