From 3152e96876dbf578bb137d42d03fe644b6337931 Mon Sep 17 00:00:00 2001 From: kxxt Date: Fri, 20 Oct 2023 09:05:18 +0800 Subject: [PATCH] Define OSPLAT for riscv64 and riscv32 --- src/engine/jam.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/engine/jam.h b/src/engine/jam.h index e1b76cb04a..5eb5744b13 100644 --- a/src/engine/jam.h +++ b/src/engine/jam.h @@ -442,6 +442,14 @@ #define OSPLAT "OSPLAT=PARISC" #endif +#if defined( __riscv ) + #if __riscv_xlen == 64 + #define OSPLAT "OSPLAT=RISCV64" + #elif __riscv_xlen == 32 + #define OSPLAT "OSPLAT=RISCV32" + #endif +#endif + #ifndef OSPLAT #define OSPLAT "" #endif