Correct detection of correct compiler

This commit is contained in:
Jaby 2023-10-06 08:31:12 +02:00 committed by Jaby
parent dff8eb1781
commit 0cc6997a9d
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ OUTPUT_DIR = $(BUILD_DIR)/$(CONFIG_NAME)
TARGET = $(OUTPUT_DIR)/$(ARTIFACT) TARGET = $(OUTPUT_DIR)/$(ARTIFACT)
#Compiler definitions #Compiler definitions
HAS_LINUX_MIPS_GCC = $(shell which mipsel-linux-gnu-gcc-10 > /dev/null 2> /dev/null && echo true || echo false) HAS_LINUX_MIPS_GCC = $(shell which mipsel-linux-gnu-gcc > /dev/null 2> /dev/null && echo true || echo false)
ifeq ($(HAS_LINUX_MIPS_GCC),true) ifeq ($(HAS_LINUX_MIPS_GCC),true)
PREFIX ?= mipsel-linux-gnu PREFIX ?= mipsel-linux-gnu
FORMAT ?= elf32-tradlittlemips FORMAT ?= elf32-tradlittlemips