Skip to content

Commit 83157e9

Browse files
singaraionaclaude
andcommitted
fix(raykx): simplify def path, rely on MSYS2_ARG_CONV_EXCL env var
The CI workflow will set MSYS2_ARG_CONV_EXCL='/DEF:' to prevent path conversion. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 41a8915 commit 83157e9

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

ext/raykx/Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ CFLAGS = -Wall -Wextra -std=c17 -fsigned-char -m64 -I. -I../../core
1313
ifneq (,$(IS_WINDOWS))
1414
TARGET = raykx.dll
1515
# On Windows, link against rayforce.lib import library
16-
# Convert MSYS path to Windows path: /c/foo -> C:/foo, /d/foo -> D:/foo (case insensitive)
16+
# Requires MSYS2_ARG_CONV_EXCL='/DEF:' to prevent path conversion
1717
TEMP ?= /tmp
1818
export TEMP
19-
WIN_CURDIR := $(subst /c/,C:/,$(subst /C/,C:/,$(subst /d/,D:/,$(subst /D/,D:/,$(CURDIR)))))
20-
$(info CURDIR=$(CURDIR) WIN_CURDIR=$(WIN_CURDIR))
21-
LDFLAGS = -shared -fuse-ld=lld -Wl,/DEF:$(WIN_CURDIR)/raykx.def
19+
LDFLAGS = -shared -fuse-ld=lld -Wl,/DEF:raykx.def
2220
LIBS = -lws2_32 -lmswsock ../../rayforce.lib
2321
DEBUG_CFLAGS = $(CFLAGS) -g -O0 -DDEBUG -D_CRT_SECURE_NO_WARNINGS
2422
RELEASE_CFLAGS = $(CFLAGS) -O3 -D_CRT_SECURE_NO_WARNINGS

0 commit comments

Comments
 (0)