Add simple wrapper to call clang with a windows target
authorMatt Corallo <git@bluematt.me>
Thu, 9 Nov 2023 22:10:17 +0000 (22:10 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 9 Nov 2023 23:11:33 +0000 (23:11 +0000)
This enables building for Windows with the existing
LDK_C_BINDINGS_EXTRA_TARGETS and LDK_C_BINDINGS_EXTRA_TARGETS_CCS
environment variables.

deterministic-build-wrappers/clang-x86_64-windows [new file with mode: 0755]

diff --git a/deterministic-build-wrappers/clang-x86_64-windows b/deterministic-build-wrappers/clang-x86_64-windows
new file mode 100755 (executable)
index 0000000..31bb028
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+clang -target x86_64-pc-windows-gnu -L/usr/lib/gcc/x86_64-w64-mingw32/12-win32/ "$@"