From 400880c468d4861f77d4aa468207b55babcf50c2 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck Date: Fri, 27 Dec 2024 07:42:18 -0600 Subject: [PATCH] jam: Fill in missing OSPLAT architectures * These are horrible, but at least consistent and won't break existing jam definitions. * Haiku's jam goes through and adjusts x86 to x86_64, etc.. so do the same for other 32 vs 64-bit architectures. Change-Id: I8b0eee20dd35e7458ef31949cd3fa621265c2f51 Reviewed-on: https://review.haiku-os.org/c/buildtools/+/8719 Reviewed-by: Adrien Destugues Reviewed-by: X512 X512 Reviewed-by: Alexander von Gluck --- jam/jam.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/jam/jam.h b/jam/jam.h index 6e509d5..adc401b 100644 --- a/jam/jam.h +++ b/jam/jam.h @@ -429,7 +429,8 @@ # endif # endif -# ifdef __sparc__ +# if defined( __sparc__ ) || \\ +# defined( __sparc64__) # if !defined( OS_SUNOS ) # define OSPLAT "OSPLAT=SPARC" # endif @@ -441,7 +442,8 @@ # endif # endif -# ifdef __arm__ +# if defined( __arm__ ) || \ + defined(__aarch64__) # define OSPLAT "OSPLAT=ARM" # endif @@ -453,6 +455,10 @@ # ifdef __s390__ # define OSPLAT "OSPLAT=390" +# endif + +# ifdef __riscv +# define OSPLAT "OSPLAT=RISCV" # endif # ifndef OSPLAT -- gitore 0.2.2