Skip to content

Commit c3c0953

Browse files
committed
compensate for windows path in env var
1 parent 552eb43 commit c3c0953

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

dka64/rules/base_tools

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@ UNAME_R := $(shell uname -r)
77
ifneq (,$(findstring Darwin,$(UNAME_S)))
88
export SHELL=/bin/bash
99
endif
10+
1011
#---------------------------------------------------------------------------------
1112
# path to tools
1213
#---------------------------------------------------------------------------------
13-
export PATH := $(DEVKITPRO)/devkitA64/bin:$(PATH)
14+
DEVKITPATH=$(shell echo "$(DEVKITPRO)" | sed -e 's/^\([a-zA-Z]\):/\/\1/')
15+
export PATH := $(DEVKITPATH)/devkitA64/bin:$(PATH)
1416

1517
#---------------------------------------------------------------------------------
1618
# add portlibs path
1719
#---------------------------------------------------------------------------------
18-
export PORTLIBS_PATH := $(DEVKITPRO)/portlibs
20+
export PORTLIBS_PATH := $(DEVKITPATH)/portlibs
21+
1922

2023
#---------------------------------------------------------------------------------
2124
# the prefix on the compiler executables

0 commit comments

Comments
 (0)