[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"
- [lmi-commits] [lmi] master updated (b8fcdb21 -> d3d0a775), Greg Chicares, 2022/11/21
- [lmi-commits] [lmi] master 7c47d71b 03/13: Perform speed test for all toolchains, Greg Chicares, 2022/11/21
- [lmi-commits] [lmi] master 55f92d87 02/13: Record gcc version twelve pc-linux-gnu speed for commit 5a4fcaed7, Greg Chicares, 2022/11/21
- [lmi-commits] [lmi] master c6528973 06/13: Specify all '*FLAGS' in one place, Greg Chicares, 2022/11/21
- [lmi-commits] [lmi] master 93e400db 10/13: Avoid literal '***' in a 'set -vx' script, Greg Chicares, 2022/11/21
- [lmi-commits] [lmi] master 8cb31fd7 01/13: Record gcc version eleven pc-linux-gnu speed for commit 5a4fcaed7, Greg Chicares, 2022/11/21
- [lmi-commits] [lmi] master 1a7a1e59 12/13: Use libc++ rather than libstdc++ with clang, Greg Chicares, 2022/11/21
- [lmi-commits] [lmi] master b830f9a0 04/13: Record speed measurements, Greg Chicares, 2022/11/21
- [lmi-commits] [lmi] master 4b6b2b5c 05/13: Split long lines that will soon become longer, Greg Chicares, 2022/11/21
- [lmi-commits] [lmi] master d6c7ec7a 08/13: Build and install libraries for all toolchains,
Greg Chicares <=
- [lmi-commits] [lmi] master 1e6d03ee 09/13: Print log messages before and after building, Greg Chicares, 2022/11/21
- [lmi-commits] [lmi] master d3d0a775 13/13: Record speed measurements, Greg Chicares, 2022/11/21
- [lmi-commits] [lmi] master cc85ea5a 11/13: Build libraries with specified toolchain, Greg Chicares, 2022/11/21
- [lmi-commits] [lmi] master a60c106c 07/13: Use clang's preprocessor, Greg Chicares, 2022/11/21