From 02c9c92ae27a71f8e8d6dad25388b0f8a3292255 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 11 Dec 2017 19:28:45 -0500 Subject: [PATCH] BeBuild: Treat TinyCC as GCC4 ABI. Since it's just a C compiler "technically" the ABI does not matter, but since it also can target other ABIs from one toolchain (e.g. x64), just treat it as GCC4 ABI unilaterally. Fixes #13847. --- headers/os/BeBuild.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headers/os/BeBuild.h b/headers/os/BeBuild.h index 3bf2acfdba..5a34a95259 100644 --- a/headers/os/BeBuild.h +++ b/headers/os/BeBuild.h @@ -45,10 +45,10 @@ #if __GNUC__ == 2 # define B_HAIKU_ABI B_HAIKU_ABI_GCC_2_HAIKU -#elif __GNUC__ >= 4 && __GNUC__ <= 8 +#elif (__GNUC__ >= 4 && __GNUC__ <= 8) || defined(__TINYC__) # define B_HAIKU_ABI B_HAIKU_ABI_GCC_4 #else -# error Unsupported gcc version! +# error Unsupported compiler! #endif