Skip to content

Commit

Permalink
Merge pull request #4098 from MartinNowak/dmdConf
Browse files Browse the repository at this point in the history
add target for default dmd.conf
  • Loading branch information
WalterBright committed Nov 10, 2014
2 parents e6fe8e3 + 57d89b8 commit d1686a3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/posix.mak
Expand Up @@ -269,6 +269,21 @@ clean:
tytab.c verstr.h core \
*.cov *.deps *.gcda *.gcno *.a

######## generate a default dmd.conf

define DEFAULT_DMD_CONF
[Environment32]
DFLAGS=-I%@P%/../../druntime/import -I%@P%/../../phobos -L-L%@P%/../../phobos/generated/$(OS)/release/32$(if $(filter $(OS),osx),, -L--export-dynamic)

[Environment64]
DFLAGS=-I%@P%/../../druntime/import -I%@P%/../../phobos -L-L%@P%/../../phobos/generated/$(OS)/release/64$(if $(filter $(OS),osx),, -L--export-dynamic)
endef

export DEFAULT_DMD_CONF

dmd.conf:
[ -f $@ ] || echo "$$DEFAULT_DMD_CONF" > $@

######## optabgen generates some source

optabgen: $C/optabgen.c $C/cc.h $C/oper.h
Expand Down

0 comments on commit d1686a3

Please sign in to comment.