Skip to content

Commit

Permalink
Define OSPLAT for riscv64 and riscv32 (#341)
Browse files Browse the repository at this point in the history
* src/engine/jam.h
    define OSPLAT for riscv64 and riscv32

Co-authored-by: René Ferdinand Rivera Morell <[email protected]>
  • Loading branch information
kxxt and grafikrobot authored Dec 1, 2023
1 parent 2499e71 commit b4c09d1
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 ) || 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 b4c09d1

Please sign in to comment.