summaryrefslogtreecommitdiff
path: root/source/luametatex/cmake/mingw-64.cmake
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2022-09-16 15:53:42 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2022-09-16 15:53:42 +0200
commitc161b7d6fe142231346cc1844e6e27c0ab7718c1 (patch)
tree3fd877b8986137703e987e4651a2db8e946a0f72 /source/luametatex/cmake/mingw-64.cmake
parente94fa4dc30ec28a6727aa85e17aaac18b76aeadb (diff)
downloadcontext-c161b7d6fe142231346cc1844e6e27c0ab7718c1.tar.gz
2022-09-16 14:41:00
Diffstat (limited to 'source/luametatex/cmake/mingw-64.cmake')
-rw-r--r--source/luametatex/cmake/mingw-64.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/luametatex/cmake/mingw-64.cmake b/source/luametatex/cmake/mingw-64.cmake
new file mode 100644
index 000000000..c57bed871
--- /dev/null
+++ b/source/luametatex/cmake/mingw-64.cmake
@@ -0,0 +1,13 @@
+if (NOT __MINGW64_TOOLCHAIN_)
+ add_compile_options(-DLUASOCKET_INET_PTON)
+endif()
+
+set(CMAKE_SYSTEM_NAME Windows)
+set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
+set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
+
+add_compile_options(-mtune=nocona)
+
+set(LUAMETATEX_MINGW 64)
+
+# set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc")