aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-12-11 21:29:55 +0100
committerKarel Kočí <cynerd@email.cz>2017-12-11 21:29:55 +0100
commit4e55c50c55eb34bc771fe7fa5d18d5e8d175ead8 (patch)
tree691903ac1e684c4e6fb8687651986ab7c44dd579
parent72900108c92488e4d1d71330e922509212c51c28 (diff)
downloadqtmips-4e55c50c55eb34bc771fe7fa5d18d5e8d175ead8.tar.gz
qtmips-4e55c50c55eb34bc771fe7fa5d18d5e8d175ead8.tar.bz2
qtmips-4e55c50c55eb34bc771fe7fa5d18d5e8d175ead8.zip
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).
-rw-r--r--tests/test.mk4
-rw-r--r--tests/test.sh2
2 files changed, 3 insertions, 3 deletions
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-" "$@"
}