From a665838eb0542594cdca95572df80957b519df7e Mon Sep 17 00:00:00 2001 From: Zhang Na Date: Mon, 19 Sep 2022 14:31:36 +0800 Subject: [PATCH] Add support for LoongArch --- checks/architecture/Jamfile.jam | 1 + checks/architecture/loongarch.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 checks/architecture/loongarch.cpp diff --git a/checks/architecture/Jamfile.jam b/checks/architecture/Jamfile.jam index c3779d91..ea41afb4 100644 --- a/checks/architecture/Jamfile.jam +++ b/checks/architecture/Jamfile.jam @@ -18,6 +18,7 @@ obj 64 : 64.cpp ; obj arm : arm.cpp ; obj combined : combined.cpp ; +obj loongarch : loongarch.cpp ; obj mips : mips.cpp ; alias mips1 : mips ; # Backwards compatibility obj power : power.cpp ; diff --git a/checks/architecture/loongarch.cpp b/checks/architecture/loongarch.cpp new file mode 100644 index 00000000..a511b584 --- /dev/null +++ b/checks/architecture/loongarch.cpp @@ -0,0 +1,11 @@ +// loongarch.cpp +// +// Copyright (c) 2022 Zhang Na +// +// 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(__loongarch__) +#error "Not LoongArch" +#endif