Permalink
Browse files

gdc fixups in makefile

  • Loading branch information...
1 parent 45ce2b2 commit a804243b21d802358908b39711f1f3407c6d7491 @mattgodbolt committed Jan 7, 2017
Showing with 3 additions and 4 deletions.
  1. +3 −4 Makefile
View
@@ -20,10 +20,9 @@ endif
.PHONY: dist lint prereqs node_modules bower_modules
prereqs: optional-d-support optional-rust-support node_modules c-preload bower_modules
-ifneq "" "$(shell which gdc)"
-optional-d-support:
- $(MAKE) -C d
-else ifneq "" "$(shell which ${DMD})"
+GDC?=gdc
+DMD?=dmd
+ifneq "" "$(shell which $(GDC) 2>/dev/null || which $(DMD) 2>/dev/null)"
optional-d-support:
$(MAKE) -C d
else

0 comments on commit a804243

Please sign in to comment.