From d9561d3d653d43d72315e7b19859431ce7a7a6e8 Mon Sep 17 00:00:00 2001 From: Jonathan Marler Date: Fri, 28 Apr 2017 16:08:08 -0600 Subject: [PATCH] Generate id.d and id.h using "dmd -run idgen.d" instead of compiling idgen.d and running in 2 steps. --- src/posix.mak | 6 ++---- src/win32.mak | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/posix.mak b/src/posix.mak index acf8ee672be1..c187dbc690df 100644 --- a/src/posix.mak +++ b/src/posix.mak @@ -446,11 +446,9 @@ optabgen.out : $G/optabgen ######## idgen generates some source idgen_output = $D/id.h $D/id.d -$(idgen_output) : $G/idgen -$G/idgen: $D/idgen.d $(HOST_DMD_PATH) - CC=$(HOST_CXX) $(HOST_DMD_RUN) -of$@ $< - $G/idgen +$(idgen_output): $D/idgen.d $(HOST_DMD_PATH) + CC=$(HOST_CXX) $(HOST_DMD_RUN) -run $< ######### # STRING_IMPORT_FILES diff --git a/src/win32.mak b/src/win32.mak index 171f80f33f75..a97d7671e874 100644 --- a/src/win32.mak +++ b/src/win32.mak @@ -415,8 +415,7 @@ $(OPTABGENOUTPUT) : \ $(DEL) *.c $(IDGENOUTPUT) : $D\idgen.d - $(HOST_DC) -of$G\idgen $D\idgen.d - $G/idgen + $(HOST_DC) -run $D\idgen.d $G\verstr.h : ..\VERSION echo "$(..\VERSION)" >$G\verstr.h