lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master d6c7ec7a 08/13: Build and install libraries f


From: Greg Chicares
Subject: [lmi-commits] [lmi] master d6c7ec7a 08/13: Build and install libraries for all toolchains
Date: Mon, 21 Nov 2022 17:29:18 -0500 (EST)

branch: master
commit d6c7ec7a2b9f4f7b83780b043633467f794d95f0
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Build and install libraries for all toolchains
    
    Updated the loop logic from 'nychthemeral_test.sh'.
    
    For the nonce, clang builds actually use gcc for libraries because the
    library-building scripts are not yet $LMI_COMPILER-aware.
---
 install_msw.sh | 27 ++++++++++++++++++++++-----
 1 file changed, 22 insertions(+), 5 deletions(-)

diff --git a/install_msw.sh b/install_msw.sh
index 3efc5c67..323e58e8 100755
--- a/install_msw.sh
+++ b/install_msw.sh
@@ -270,16 +270,33 @@ make "$coefficiency" --output-sync=recurse -f 
install_miscellanea.make
 # This for-loop can iterate over as many toolchains as desired.
 # Make sure the current production architecture is built last, so that
 # it's the one installed to /opt/lmi/bin/ when this script ends.
-triplets="x86_64-w64-mingw32"
+lmi_toolchains="gcc_msw64"
 if [ "Cygwin" != "$platform" ] && [ "WSL" != "$platform" ]
 then
-    triplets="x86_64-pc-linux-gnu x86_64-w64-mingw32"
+  lmi_toolchains="clang_gnu64 gcc_gnu64 gcc_msw64"
 fi
-export LMI_COMPILER=gcc
+export LMI_COMPILER
 export LMI_TRIPLET
-# shellcheck disable=SC2043
-for LMI_TRIPLET in ${triplets} ;
+for toolchain in ${lmi_toolchains} ;
 do
+    case "$toolchain" in
+        (clang_gnu64)
+            LMI_COMPILER="clang"
+            LMI_TRIPLET="x86_64-pc-linux-gnu"
+            ;;
+        (gcc_gnu64)
+            LMI_COMPILER="gcc"
+            LMI_TRIPLET="x86_64-pc-linux-gnu"
+            ;;
+        (gcc_msw64)
+            LMI_COMPILER="gcc"
+            LMI_TRIPLET="x86_64-w64-mingw32"
+            ;;
+        (*)
+            printf 'Unknown toolchain "%s".\n' "$toolchain"
+            return 1;
+            ;;
+    esac
     # Set a minimal path for makefiles and scripts that are
     # designed to be independent of lmi's runtime path.
     export PATH="$minimal_path"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]