From 37a42dd2e8efb350375726770d964b13c7c19f98 Mon Sep 17 00:00:00 2001 From: Greg Tucker Date: Thu, 15 Nov 2018 17:08:14 -0700 Subject: [PATCH] build: Fix for older mingw that does not auto add extention Change-Id: I5217da1f59ed747aa85da30fd005343e245c4fe2 Signed-off-by: Greg Tucker --- make.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/make.inc b/make.inc index 5b34eda..e5fc160 100644 --- a/make.inc +++ b/make.inc @@ -45,7 +45,6 @@ arch ?= $(shell uname | grep -v -e Linux -e BSD ) CC = gcc AS = yasm -SIM = sde $(SIMFLAGS) -- AWK = awk DEBUG = -g @@ -77,6 +76,8 @@ LDFLAGS_so = -Wl,-soname,$(soname) ifeq ($(arch),mingw) CC=x86_64-w64-mingw32-gcc AR=x86_64-w64-mingw32-ar + LDFLAGS += -Wl,--force-exe-suffix + SIM=wine EXT=.exe CLEANFILES+=*.exe endif @@ -155,8 +156,8 @@ llvm_fuzz_tests: $(all_llvm_fuzz_tests) tests: $(all_unit_tests) perfs: $(all_perf_tests) checks: $(all_check_tests) -check test perf: SIM= -trace: SIMFLAGS = -debugtrace +trace: SIM=sde -debugtrace -- +sim: SIM=sde -- check test sim: @echo Finished running $@