From 4d63d3158cac7987e457beb3d0c08e19e8ee0ac3 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sat, 14 Sep 2019 22:34:00 +0200 Subject: [PATCH] build: enable a fall-back path for unsupported architectures. Previously, we would simply fail if the architecture was not a first-class citizen. However, we have always allowed a built-in fallback in code. Instead, allow for people to direcly use the builtin fallback without having to provide their own profiles and emit a loud warning. --- build/ck.build.unknown | 0 configure | 12 +++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 build/ck.build.unknown diff --git a/build/ck.build.unknown b/build/ck.build.unknown new file mode 100644 index 0000000..e69de29 diff --git a/configure b/configure index 88df9ac..2cbdbef 100755 --- a/configure +++ b/configure @@ -524,8 +524,9 @@ case $PLATFORM in *) RTM_ENABLE="CK_MD_RTM_DISABLE" LSE_ENABLE="CK_MD_LSE_DISABLE" - PLATFORM= + PLATFORM=unknown MM="${MM:-"CK_MD_RMO"}" + USE_CC_BUILTINS=1 ;; esac @@ -837,3 +838,12 @@ generate Makefile.in $P_PWD/Makefile touch src/*.c echo "success" generate_stdout + +if test "$PROFILE" = "unknown"; then + echo + echo "WARNING: your target architecture is not a first-class citizen." + echo + echo "The test suite may not work as intended. Consider reaching out " + echo "to the mailing list about having the project add first-class " + echo "support for your architecture." +fi