Skip to content

Commit

Permalink
Define OSPLAT for riscv64 and riscv32
Browse files Browse the repository at this point in the history
  • Loading branch information
kxxt committed Oct 20, 2023
1 parent 2fc52a7 commit 3152e96
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/engine/jam.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3152e96

Please sign in to comment.