Add detection of the RISC-V architecture

This commit is contained in:
Andreas Schwab
2019-04-08 14:53:30 +02:00
parent 96607d5e15
commit f6029148a8
2 changed files with 10 additions and 0 deletions

View File

@ -19,5 +19,6 @@ obj arm : arm.cpp ;
obj combined : combined.cpp ;
obj mips1 : mips1.cpp ;
obj power : power.cpp ;
obj riscv : riscv.cpp ;
obj sparc : sparc.cpp ;
obj x86 : x86.cpp ;

View File

@ -0,0 +1,9 @@
// riscv.cpp
//
// Distributed under the Boost Software License Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#if !defined(__riscv)
#error "Not RISC-V"
#endif