summaryrefslogtreecommitdiff
path: root/source/luametatex/build.sh
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2023-04-01 10:50:35 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2023-04-01 10:50:35 +0200
commit059fc69b2c7853b937ddb4cfc9d36304dee07893 (patch)
treea58b878377348a05b55bf9b2c6ee44dcd8508c2c /source/luametatex/build.sh
parent97f560d2993c367fb84ef62eefbe90ca03c19ebc (diff)
downloadcontext-059fc69b2c7853b937ddb4cfc9d36304dee07893.tar.gz
2023-04-01 09:31:00
Diffstat (limited to 'source/luametatex/build.sh')
-rw-r--r--source/luametatex/build.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/luametatex/build.sh b/source/luametatex/build.sh
index 2f5514316..a8a834a7c 100644
--- a/source/luametatex/build.sh
+++ b/source/luametatex/build.sh
@@ -15,6 +15,9 @@
# mtxrun.lua (latest version)
# context.lua (latest version)
+# This test is not yet okay but I have no time (or motivation) to look into it now, so for now we don't
+# use ninja (not that critical).
+
#NINJA=$(which ninja);
#if (NINJA) then
# NINJA="-G Ninja"
@@ -49,6 +52,15 @@ then
cd build/mingw-64-ucrt
cmake $NINJA -DCMAKE_TOOLCHAIN_FILE=./cmake/mingw-64-ucrt.cmake ../..
+
+elif [ "$1" = "cygwin" ] || [ "$1" = "--cygwin" ]
+then
+ PLATFORM="cygwin"
+ SUFFIX=".exe"
+ mkdir -p build/cygwin
+ cd build/cygwin
+ cmake $NINJA ../..
+
else
PLATFORM="native"