From 4e55c50c55eb34bc771fe7fa5d18d5e8d175ead8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 11 Dec 2017 21:29:55 +0100 Subject: Set MIPS_PREFIX to contain tailing dash It's common practice to have cross compilation prefix with dash as it allows you to not use any prefix at all and still have valid gcc call (although we are checking if we have it set at all but that doesn't matter for now). --- tests/test.mk | 4 ++-- tests/test.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test.mk b/tests/test.mk index c05a72b..cc318df 100644 --- a/tests/test.mk +++ b/tests/test.mk @@ -27,10 +27,10 @@ $$(info $$(OBJ_$(1))) all:: $$(O)/$(1) $$(O)/$(1): $$(OBJ_$(1)) - $$(MIPS_PREFIX)-gcc $$(MIPS_LDFLAGS) -o $$@ $$^ + $$(MIPS_PREFIX)gcc $$(MIPS_LDFLAGS) -o $$@ $$^ $$(OBJ_$(1)): $$(O)/%.o: %.S - $$(MIPS_PREFIX)-gcc $$(MIPS_CFLAGS) -c -x assembler-with-cpp -o $$@ $$< + $$(MIPS_PREFIX)gcc $$(MIPS_CFLAGS) -c -x assembler-with-cpp -o $$@ $$< clean:: $(RM) $$(OBJ_$(1)) diff --git a/tests/test.sh b/tests/test.sh index 34b42e3..d04d380 100644 --- a/tests/test.sh +++ b/tests/test.sh @@ -97,5 +97,5 @@ mips_compiler() { mips_make_test() { mips_compiler mkdir -p "$TEST_DIR" - PATH="$PATH:$MIPS_COMPILER/bin" make -C "$TEST_SRC" O="$TEST_DIR" MIPS_PREFIX="mips-qtmips-elf" "$@" + PATH="$PATH:$MIPS_COMPILER/bin" make -C "$TEST_SRC" O="$TEST_DIR" MIPS_PREFIX="mips-qtmips-elf-" "$@" } -- cgit v1.2.3