aboutsummaryrefslogtreecommitdiff
path: root/etc/environments
diff options
context:
space:
mode:
Diffstat (limited to 'etc/environments')
-rwxr-xr-xetc/environments/default-aarch6440
-rw-r--r--etc/environments/default-clang.bat9
-rwxr-xr-xetc/environments/default-emcc2
-rw-r--r--etc/environments/default-mingw.bat2
-rw-r--r--etc/environments/default-msvc-14.bat2
-rw-r--r--etc/environments/default-msvc.bat9
-rwxr-xr-xetc/environments/default-x86_64 (renamed from etc/environments/default)4
7 files changed, 57 insertions, 11 deletions
diff --git a/etc/environments/default-aarch64 b/etc/environments/default-aarch64
new file mode 100755
index 0000000..3fb5ccb
--- /dev/null
+++ b/etc/environments/default-aarch64
@@ -0,0 +1,40 @@
+#!/bin/sh
+
+# file : etc/environments/default-aarch64
+# license : MIT; see accompanying LICENSE file
+
+#
+# Environment setup script for C/C++ compilation.
+#
+
+# NOTE: don't forget to adjust the target mode selection below.
+#
+c=gcc
+cxx=g++
+
+# $1 - target
+# $2 - bbot executable (if absent, then run $SHELL)
+# $3+ - bbot options
+
+set -e # Exit on errors.
+
+# Based on target determine what we are building.
+#
+mode=
+case "$1" in
+ aarch64-*)
+ ;;
+ *)
+ echo "unknown target: '$1'" 1>&2
+ exit 1
+ ;;
+esac
+shift
+
+if test $# -ne 0; then
+ exec "$@" cc config.c="$c $mode" config.cxx="$cxx $mode"
+else
+ echo "config.c=$c $mode" 1>&2
+ echo "config.cxx=$cxx $mode" 1>&2
+ exec $SHELL -i
+fi
diff --git a/etc/environments/default-clang.bat b/etc/environments/default-clang.bat
index 75861ff..3868889 100644
--- a/etc/environments/default-clang.bat
+++ b/etc/environments/default-clang.bat
@@ -1,7 +1,7 @@
@echo off
rem file : etc/environments/default-clang.bat
-rem license : TBC; see accompanying LICENSE file
+rem license : MIT; see accompanying LICENSE file
rem
rem Environment setup script for C/C++ compilation with Clang targeting
@@ -24,8 +24,11 @@ set "MSVC="
rem set "MSVC=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
rem set "MSVC_VER=14.1"
-set "MSVC=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
-set "MSVC_VER=14.2"
+rem set "MSVC=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
+rem set "MSVC_VER=14.2"
+
+set "MSVC=C:\Program Files\Microsoft Visual Studio\2022\Community"
+set "MSVC_VER=14.3"
set "VCVARS32=VC\Auxiliary\Build\vcvarsamd64_x86.bat"
set "VCVARS64=VC\Auxiliary\Build\vcvars64.bat"
diff --git a/etc/environments/default-emcc b/etc/environments/default-emcc
index 509542f..9a8e595 100755
--- a/etc/environments/default-emcc
+++ b/etc/environments/default-emcc
@@ -1,7 +1,7 @@
#!/bin/sh
# file : etc/environments/default-emcc
-# license : TBC; see accompanying LICENSE file
+# license : MIT; see accompanying LICENSE file
#
# Environment setup script for C/C++ compilation with Emscripten using
diff --git a/etc/environments/default-mingw.bat b/etc/environments/default-mingw.bat
index 9adee8f..e8bdf3d 100644
--- a/etc/environments/default-mingw.bat
+++ b/etc/environments/default-mingw.bat
@@ -1,7 +1,7 @@
@echo off
rem file : etc/environments/default-mingw.bat
-rem license : TBC; see accompanying LICENSE file
+rem license : MIT; see accompanying LICENSE file
rem
rem Environment setup script for C/C++ compilation with MinGW GCC.
diff --git a/etc/environments/default-msvc-14.bat b/etc/environments/default-msvc-14.bat
index f5e64eb..cc5ab15 100644
--- a/etc/environments/default-msvc-14.bat
+++ b/etc/environments/default-msvc-14.bat
@@ -1,7 +1,7 @@
@echo off
rem file : etc/environments/default-msvc-14.bat
-rem license : TBC; see accompanying LICENSE file
+rem license : MIT; see accompanying LICENSE file
rem
rem Environment setup script for C/C++ compilation with Visual Studio 14.
diff --git a/etc/environments/default-msvc.bat b/etc/environments/default-msvc.bat
index 563a81a..c07f825 100644
--- a/etc/environments/default-msvc.bat
+++ b/etc/environments/default-msvc.bat
@@ -1,7 +1,7 @@
@echo off
rem file : etc/environments/default-msvc.bat
-rem license : TBC; see accompanying LICENSE file
+rem license : MIT; see accompanying LICENSE file
rem
rem Environment setup script for C/C++ compilation with Visual Studio.
@@ -17,8 +17,11 @@ set "MSVC="
rem set "MSVC=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
rem set "MSVC_VER=14.1"
-set "MSVC=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
-set "MSVC_VER=14.2"
+rem set "MSVC=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
+rem set "MSVC_VER=14.2"
+
+set "MSVC=C:\Program Files\Microsoft Visual Studio\2022\Community"
+set "MSVC_VER=14.3"
set "VCVARS32=VC\Auxiliary\Build\vcvarsamd64_x86.bat"
set "VCVARS64=VC\Auxiliary\Build\vcvars64.bat"
diff --git a/etc/environments/default b/etc/environments/default-x86_64
index c7c7953..e324fa1 100755
--- a/etc/environments/default
+++ b/etc/environments/default-x86_64
@@ -1,7 +1,7 @@
#!/bin/sh
-# file : etc/environments/default
-# license : TBC; see accompanying LICENSE file
+# file : etc/environments/default-x86_64
+# license : MIT; see accompanying LICENSE file
#
# Environment setup script for C/C++ compilation.