⛏️ index : buildtools.git

author Alexander von Gluck <alex@terarocket.io> 2024-12-27 7:42:18.0 -06:00:00
committer Alexander von Gluck <alex@terarocket.io> 2024-12-27 14:15:24.0 +00:00:00
commit
400880c468d4861f77d4aa468207b55babcf50c2 [patch]
tree
40941dc8b77bb49893d96fffdb777ccfd48d8ecb
parent
d86b03dc2b1ffbf5361542719a03a701b2d7cbb4
download
400880c468d4861f77d4aa468207b55babcf50c2.tar.gz

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 <pulkomandy@pulkomandy.tk>
Reviewed-by: X512 X512 <danger_mail@list.ru>
Reviewed-by: Alexander von Gluck <alex@terarocket.io>

Diff

 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
+++ a/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