Build system: fail when encountering an unknown package tag
authorThomas Miedema <thomasmiedema@gmail.com>
Wed, 15 Jul 2015 09:05:57 +0000 (11:05 +0200)
committerThomas Miedema <thomasmiedema@gmail.com>
Fri, 17 Jul 2015 23:05:22 +0000 (01:05 +0200)
ghc.mk

diff --git a/ghc.mk b/ghc.mk
index db077bc..2a0adb9 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -444,7 +444,7 @@ ifeq "$$(BUILD_EXTRA_PKGS)" "YES"
 PACKAGES_STAGE2 += $1
 endif
 else
-PACKAGES_STAGE2 += $1
+$$(error Unknown package tag: $2)
 endif
 endef
 $(eval $(call foreachLibrary,addExtraPackage))