summaryrefslogtreecommitdiff
path: root/rules/distdir-opts.mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-04-20 14:17:00 +0100
committerIan Lynagh <ian@well-typed.com>2013-04-20 17:09:00 +0100
commitaa06f5d7a0821d5118a594b448d364b77df4985f (patch)
tree0e716be82526f8e7d3ed2c101352d409c8ef07a1 /rules/distdir-opts.mk
parent9e4e2c24d1895ae81c92e4432b91026505827c96 (diff)
downloadhaskell-aa06f5d7a0821d5118a594b448d364b77df4985f.tar.gz
Follow build system changes in integer-gmp
Also a couple of other fixes and sanity checks along the way.
Diffstat (limited to 'rules/distdir-opts.mk')
-rw-r--r--rules/distdir-opts.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules/distdir-opts.mk b/rules/distdir-opts.mk
index fd415b64db..0009f8582a 100644
--- a/rules/distdir-opts.mk
+++ b/rules/distdir-opts.mk
@@ -15,6 +15,10 @@
define distdir-opts # args: $1 = dir, $2 = distdir, $3 = stage
+ifeq "$3" ""
+$$(error Stage not given for distdir-opts $1 $2)
+endif
+
ifeq "$3" "0"
# This is a bit of a hack.
# If we are compiling something with the bootstrapping compiler on