mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Merge pull request #277 from andreas-schwab/develop
Add detection of the RISC-V architecture
This commit is contained in:
@ -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 ;
|
||||
|
9
checks/architecture/riscv.cpp
Normal file
9
checks/architecture/riscv.cpp
Normal 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
|
Reference in New Issue
Block a user