mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-13 07:03:40 +01:00
Fix "arm-none-eabi-gcc not found" error (#751)
This commit is contained in:
parent
6ff1426abe
commit
bb07f06fc6
11
Makefile
11
Makefile
@ -2,10 +2,11 @@ TOOLCHAIN := $(DEVKITARM)
|
|||||||
ifneq (,$(wildcard $(TOOLCHAIN)/base_tools))
|
ifneq (,$(wildcard $(TOOLCHAIN)/base_tools))
|
||||||
include $(TOOLCHAIN)/base_tools
|
include $(TOOLCHAIN)/base_tools
|
||||||
else
|
else
|
||||||
PREFIX := $(TOOLCHAIN)/bin/arm-none-eabi-
|
export PATH := $(TOOLCHAIN)/bin:$(PATH)
|
||||||
|
PREFIX := arm-none-eabi-
|
||||||
OBJCOPY := $(PREFIX)objcopy
|
OBJCOPY := $(PREFIX)objcopy
|
||||||
CC := $(PREFIX)gcc
|
export CC := $(PREFIX)gcc
|
||||||
AS := $(PREFIX)as
|
export AS := $(PREFIX)as
|
||||||
endif
|
endif
|
||||||
export CPP := $(PREFIX)cpp
|
export CPP := $(PREFIX)cpp
|
||||||
export LD := $(PREFIX)ld
|
export LD := $(PREFIX)ld
|
||||||
@ -42,7 +43,7 @@ MID_BUILDDIR = $(OBJ_DIR)/$(MID_SUBDIR)
|
|||||||
|
|
||||||
ASFLAGS := -mcpu=arm7tdmi --defsym MODERN=$(MODERN)
|
ASFLAGS := -mcpu=arm7tdmi --defsym MODERN=$(MODERN)
|
||||||
|
|
||||||
GCC_VER := $(shell $(CC) -dumpversion)
|
GCC_VER = $(shell $(CC) -dumpversion)
|
||||||
|
|
||||||
ifeq ($(MODERN),0)
|
ifeq ($(MODERN),0)
|
||||||
CC1 := tools/agbcc/bin/agbcc$(EXE)
|
CC1 := tools/agbcc/bin/agbcc$(EXE)
|
||||||
@ -51,7 +52,7 @@ ROM := pokeemerald.gba
|
|||||||
OBJ_DIR := build/emerald
|
OBJ_DIR := build/emerald
|
||||||
LIBPATH := -L ../../tools/agbcc/lib
|
LIBPATH := -L ../../tools/agbcc/lib
|
||||||
else
|
else
|
||||||
CC1 := $(shell $(CC) --print-prog-name=cc1) -quiet
|
CC1 = $(shell $(CC) --print-prog-name=cc1) -quiet
|
||||||
override CFLAGS += -mthumb -mthumb-interwork -O2 -mabi=apcs-gnu -mtune=arm7tdmi -march=armv4t -fno-toplevel-reorder -fno-aggressive-loop-optimizations -Wno-pointer-to-int-cast
|
override CFLAGS += -mthumb -mthumb-interwork -O2 -mabi=apcs-gnu -mtune=arm7tdmi -march=armv4t -fno-toplevel-reorder -fno-aggressive-loop-optimizations -Wno-pointer-to-int-cast
|
||||||
ROM := pokeemerald_modern.gba
|
ROM := pokeemerald_modern.gba
|
||||||
OBJ_DIR := build/modern
|
OBJ_DIR := build/modern
|
||||||
|
Loading…
x
Reference in New Issue
Block a user