Skip to content

Commit

Permalink
Check for $(DEVKITARM) first before checking for $(DEVKITARM)/bin
Browse files Browse the repository at this point in the history
  • Loading branch information
luckytyphlosion authored and huderlem committed Dec 31, 2020
1 parent 07f3f62 commit bd1b2f5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
13 changes: 11 additions & 2 deletions libc/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
ifneq (,$(wildcard $(DEVKITARM)/bin))
include $(DEVKITARM)/base_tools
ifneq (,$(DEVKITARM))
ifneq (,$(wildcard $(DEVKITARM)/bin))
include $(DEVKITARM)/base_tools
DKA_EXISTS=1
else
DKA_EXISTS=0
endif
else
DKA_EXISTS=0
endif

ifneq ($(DKA_EXISTS),1)
PREFIX := arm-none-eabi-
export AR := $(PREFIX)ar
export AS := $(PREFIX)as
Expand Down
13 changes: 11 additions & 2 deletions libgcc/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
ifneq (,$(wildcard $(DEVKITARM)/bin))
include $(DEVKITARM)/base_tools
ifneq (,$(DEVKITARM))
ifneq (,$(wildcard $(DEVKITARM)/bin))
include $(DEVKITARM)/base_tools
DKA_EXISTS=1
else
DKA_EXISTS=0
endif
else
DKA_EXISTS=0
endif

ifneq ($(DKA_EXISTS),1)
PREFIX := arm-none-eabi-
export AR := $(PREFIX)ar
export AS := $(PREFIX)as
Expand Down

0 comments on commit bd1b2f5

Please sign in to comment.