Skip to content

Commit d32d640

Browse files
singaraionaclaude
andcommitted
fix(raykx): use MSYS2_ARG_CONV_EXCL to prevent /DEF: path conversion
The //DEF: double-slash escape doesn't work because lld in MinGW mode doesn't recognize MSVC-style options. Setting MSYS2_ARG_CONV_EXCL prevents MSYS2 from converting /DEF: to a path. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 516e17b commit d32d640

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/raykx/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ ifneq (,$(IS_WINDOWS))
1414
TARGET = raykx.dll
1515
# On Windows, link against rayforce.lib import library and export functions via .def
1616
# lld requires TEMP for temp files, but make doesn't pass env vars by default
17+
# MSYS2_ARG_CONV_EXCL prevents path conversion for /DEF: argument
1718
TEMP ?= /tmp
1819
export TEMP
19-
LDFLAGS = -shared -fuse-ld=lld -Wl,//DEF:raykx.def
20+
export MSYS2_ARG_CONV_EXCL = /DEF:
21+
LDFLAGS = -shared -fuse-ld=lld -Wl,/DEF:raykx.def
2022
LIBS = -lws2_32 -lmswsock ../../rayforce.lib
2123
DEBUG_CFLAGS = $(CFLAGS) -g -O0 -DDEBUG -D_CRT_SECURE_NO_WARNINGS
2224
RELEASE_CFLAGS = $(CFLAGS) -O3 -D_CRT_SECURE_NO_WARNINGS

0 commit comments

Comments
 (0)