Skip to content

Commit

Permalink
support RISCV in property os
Browse files Browse the repository at this point in the history
Check for RSICV preprocessor definitions in order to set OSPLAT appropriately.
  • Loading branch information
olk authored Oct 23, 2023
1 parent 8d86b9a commit 67ea63a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/engine/jam.h
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,15 @@
#define OSPLAT "OSPLAT=PARISC"
#endif

#if defined( __riscv ) || \
defined( __riscv__ )
#if 64 == __riscv_xlen
#define OSPLAT "OSPLAT=RISCV64"
#elif _32 == _riscv_xlen
#define OSPLAT "OSPLAT=RISCV32"
#endif
#endif

#ifndef OSPLAT
#define OSPLAT ""
#endif
Expand Down

0 comments on commit 67ea63a

Please sign in to comment.