Skip to content

Commit a9f28fb

Browse files
singaraionaclaude
andcommitted
fix(raykx): use pwd -W instead of cygpath for Windows path
pwd -W is built into bash and more reliably available across MSYS2 environments than cygpath. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5f9ee56 commit a9f28fb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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-
# Use absolute path for .def file to avoid MSYS2 path conversion issues
16+
# Use absolute Windows path for .def file to avoid MSYS2 path conversion issues
1717
TEMP ?= /tmp
1818
export TEMP
19-
DEF_PATH := $(shell cygpath -m $(CURDIR)/raykx.def)
19+
DEF_PATH := $(shell cd $(CURDIR) && pwd -W)/raykx.def
2020
LDFLAGS = -shared -fuse-ld=lld -Wl,/DEF:$(DEF_PATH)
2121
LIBS = -lws2_32 -lmswsock ../../rayforce.lib
2222
DEBUG_CFLAGS = $(CFLAGS) -g -O0 -DDEBUG -D_CRT_SECURE_NO_WARNINGS

0 commit comments

Comments
 (0)