[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
This commit is contained in:
David Nadlinger 2010-12-08 16:58:14 +00:00
commit 7903475571

View file

@ -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