ArchitectureRules: Enable no-delete-null-pointer-checks on Clang.

This requires a trunk build of Clang (the flag was only implemented
& introduced 12 days ago), but at present, full builds will fail
due to an unrelated Clang bug: https://bugs.llvm.org/show_bug.cgi?id=38356
This commit is contained in:
Augustin Cavalier 2018-07-30 20:37:27 -04:00
parent c67634d98c
commit 1587c3c555

View File

@ -34,7 +34,7 @@ rule ArchitectureSetup architecture
# - https://dev.haiku-os.org/ticket/10803#comment:4 (& subsequent comments)
# Note that the Linux also does the same:
# - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a3ca86aea507904148870946d599e07a340b39bf
if $(gccVersion[1]) >= 3 && $(HAIKU_CC_IS_CLANG_$(architecture)) != 1 {
if $(gccVersion[1]) >= 3 {
gccBaseFlags += -fno-delete-null-pointer-checks ;
}