From 9d57e8447fda29302efc5b29a167297d99ad6bb7 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 9 Sep 2026 20:53:21 -0400 Subject: [PATCH] Add an Alpha architecture check The checks under checks/architecture are what the superproject's architecture deduction compiles to identify the host, and there was no Alpha check for it to find. The macros match the ones boost/predef/architecture/alpha.h already keys on. --- checks/architecture/Jamfile.jam | 1 + checks/architecture/alpha.cpp | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 checks/architecture/alpha.cpp diff --git a/checks/architecture/Jamfile.jam b/checks/architecture/Jamfile.jam index ea41afb4a..25d464ed4 100644 --- a/checks/architecture/Jamfile.jam +++ b/checks/architecture/Jamfile.jam @@ -16,6 +16,7 @@ project /boost/architecture obj 32 : 32.cpp ; obj 64 : 64.cpp ; +obj alpha : alpha.cpp ; obj arm : arm.cpp ; obj combined : combined.cpp ; obj loongarch : loongarch.cpp ; diff --git a/checks/architecture/alpha.cpp b/checks/architecture/alpha.cpp new file mode 100644 index 000000000..5320ed527 --- /dev/null +++ b/checks/architecture/alpha.cpp @@ -0,0 +1,9 @@ +// alpha.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(__alpha__) && !defined(__alpha) && !defined(_M_ALPHA) +#error "Not Alpha" +#endif