Skip to content

Add support for MS-Windows using the MSYS2/CLANG64 toolchain#716

Open
ikappaki wants to merge 72 commits intojank-lang:mainfrom
ikappaki:main-win
Open

Add support for MS-Windows using the MSYS2/CLANG64 toolchain#716
ikappaki wants to merge 72 commits intojank-lang:mainfrom
ikappaki:main-win

Conversation

@ikappaki
Copy link

Hi,

could you please consider adding support for Windows using the MSYS2/clang64 toolchain in support of #713.

The port requires updates to the following third-party libraries:

  1. CppInterop: Support CppInterop on MSYS2/CLANG64 toolchain CppInterOp#3
  2. Folly: Support folly on MSYS2/CLANG64 toolchain folly#2
  3. Zip: Support zip on MSYS2/CLANG64 toolchain#2 zip#2

It also introduces the (libchkstk (is a simple workaround for the Symbols not found: [ ___chkstk_ms ] build error) and MINGW-packages/mingw-w64-llvm (a package definition extracted, with the necessary patches to compile on the MSYS2 clang64 toolchain), under the third-party libraries, with their original snapshots from source starting at:
#714

The port is fully functional except for exception stack unwinding from the JIT layer, which is not yet supported by LLVM (tracked in ikappaki#2). As a result, several tests that throw exceptions from JIT code have been explicitly disabled:

  • jank-test: as listed in compiler+runtime/test/jit_windows_skips.txt
  • compiler+runtime/test/bash/clojure.test/src/clojure_test/self_test.jank
  • compiler+runtime/test/bash/error-reporting/bin/jank/test/error_reporting.clj
  • compiler+runtime/test/bash/cli/pass-test

I will update the documentation once the review process is complete. We should also consider how to approach binary packaging, since there is currently no registry available to host mingw-w64-jank alpha binaries.

I also plan to update this description with a bullet point summary of the changes.

Thanks

ikappaki and others added 30 commits January 11, 2026 22:02
* Add support for memory mapped files using WIN32 api directly
…-c1a0c268

Upgrade to llvm22, 6 Oct 2025 snap
ikappaki and others added 29 commits February 7, 2026 17:30
* bash test support on Windows

tests that utilise jit exceptions are skipped
@CLAassistant
Copy link

CLAassistant commented Mar 17, 2026

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ ikappaki
❌ chaos


chaos seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants