From 79034755715aca918d1ed23454516e0f8d9ab577 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Wed, 8 Dec 2010 16:58:14 +0000 Subject: [PATCH] [D] Workaround for an argument handling discrepancy between DMD and LDC. See http://dsource.org/projects/ldc/ticket/380 for the corresponding LDC ticket. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12335 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Examples/Makefile.in b/Examples/Makefile.in index 44794255c..1a02c4186 100644 --- a/Examples/Makefile.in +++ b/Examples/Makefile.in @@ -1258,8 +1258,10 @@ d_cpp: $(SRCS) # Compile D files # ---------------------------------------------------------------- +# Clear the DFLAGS environment variable for the compiler call itself +# to work around a discrepancy in argument handling between DMD and LDC. d_compile: $(SRCS) - $(COMPILETOOL) $(DCOMPILER) $(DFLAGS) $(DSRCS) + DFLAGS="" $(COMPILETOOL) $(DCOMPILER) $(DFLAGS) $(DSRCS) # ----------------------------------------------------------------- # Clean the D examples