ArchitectureRules: Reinstate the -fno-builtin-fork for 32-bit x86 only.

This commit is contained in:
Augustin Cavalier 2024-09-24 14:47:27 -04:00
parent c289d46cf1
commit d0ff5bacff

View File

@ -25,6 +25,11 @@ rule ArchitectureSetup architecture
# for `this` in member functions), which breaks the kernel and various
# applications. (Linux does the same.)
ccBaseFlags += -fno-delete-null-pointer-checks ;
if $(architecture) = x86 {
# disable some builtins that are incompatible with our definitions
ccBaseFlags += -fno-builtin-fork -fno-builtin-vfork ;
}
}
# default architecture tuning