Skip to content

Commit 41a8915

Browse files
singaraionaclaude
andcommitted
fix(raykx): handle uppercase drive letters in path conversion
GitHub Actions may use /D/ instead of /d/ for drive letters. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5fb0f05 commit 41a8915

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/raykx/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +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
16+
# Convert MSYS path to Windows path: /c/foo -> C:/foo, /d/foo -> D:/foo (case insensitive)
1717
TEMP ?= /tmp
1818
export TEMP
19-
WIN_CURDIR := $(subst /c/,C:/,$(subst /d/,D:/,$(CURDIR)))
19+
WIN_CURDIR := $(subst /c/,C:/,$(subst /C/,C:/,$(subst /d/,D:/,$(subst /D/,D:/,$(CURDIR)))))
2020
$(info CURDIR=$(CURDIR) WIN_CURDIR=$(WIN_CURDIR))
2121
LDFLAGS = -shared -fuse-ld=lld -Wl,/DEF:$(WIN_CURDIR)/raykx.def
2222
LIBS = -lws2_32 -lmswsock ../../rayforce.lib

0 commit comments

Comments
 (0)