ArchitectureRules: Disable the 'fork' builtin on GCC4+.

On GCC 7.3, it conflicts with our definition of 'fork'. The documentation
states that disabling builtins has no effect on versions where they
do not exist, so we don't need to check for GCC7 here.
This commit is contained in:
waddlesplash
2018-05-19 20:33:10 -04:00
parent d1feb7cb60
commit 71819cc094
+1 -1
View File
@@ -28,7 +28,7 @@ rule ArchitectureSetup architecture
# our gcc4 compiler. See this discussion on some issues:
# http://www.freelists.org/post/haiku-development/hrev45320-Yet-another-nonobvious-effect-of-ftreevrp-optimization
if $(gccVersion[1]) >= 3 {
gccBaseFlags += -fno-strict-aliasing ;
gccBaseFlags += -fno-strict-aliasing -fno-builtin-fork ;
if $(HAIKU_CC_IS_CLANG_$(architecture)) != 1 {
gccBaseFlags += -fno-tree-vrp ;
}