[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] odd/multiarch adf0725 04/10: Validate $LMI_COMPILER
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] odd/multiarch adf0725 04/10: Validate $LMI_COMPILER as well as $LMI_TRIPLET |
Date: |
Wed, 15 May 2019 17:59:55 -0400 (EDT) |
branch: odd/multiarch
commit adf072500fa4f5bda7ce8c81df8ae8ad6f75ee4d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Validate $LMI_COMPILER as well as $LMI_TRIPLET
---
set_arch.sh | 21 +++++++++++++++++----
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/set_arch.sh b/set_arch.sh
index c51cd44..95d4c18 100755
--- a/set_arch.sh
+++ b/set_arch.sh
@@ -137,16 +137,29 @@ case "$lmi_build_type" in
esac
}
-# test compiler similarly
+case "$LMI_COMPILER" in
+ (gcc) ;;
+ (*)
+ # This script is to be sourced, so it can't use a builtin
+ # command like 'print' here. Similarly, 'exit' would have
+ # a surprising effect.
+ echo "Changed nothing because compiler is untested."
+ return 2;
+ ;;
+esac
+
case "$LMI_TRIPLET" in
- (i686-w64-mingw32) foo ;;
- (x86_64-w64-mingw32) foo ;;
+ (i686-w64-mingw32) ;;
+ (x86_64-w64-mingw32) ;;
(*)
# This script is to be sourced, so it can't use a builtin
# command like 'print' here. Similarly, 'exit' would have
# a surprising effect.
- echo "Untested host triplet. Expect surprises."
+ echo "Changed nothing because host triplet is untested."
+ return 3;
;;
esac
+foo
+
unset -f foo
- [lmi-commits] [lmi] odd/multiarch updated (992aef4 -> da7b85f), Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch a0da26f 09/10: Avert shellcheck SC2140 warning, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch da7b85f 10/10: Rename set_arch.sh -> set_toolchain.sh, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch 4608d81 03/10: Remove obsolete commentary, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch 068f52e 06/10: Improve documentation, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch 48c0186 08/10: Rephrase for clarity, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch fd0b947 07/10: Improve diagnostics, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch e95d62e 02/10: Improve documentation, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch 98e00a5 05/10: Explain why one variable is unset while another is exported, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch cfc2bad 01/10: Prefer xz to bzip2, Greg Chicares, 2019/05/15
- [lmi-commits] [lmi] odd/multiarch adf0725 04/10: Validate $LMI_COMPILER as well as $LMI_TRIPLET,
Greg Chicares <=