From 7491cedb20d15a54e905205c51aea72a13ac73aa Mon Sep 17 00:00:00 2001 From: Alp Mestanogullari Date: Tue, 11 Dec 2018 13:10:03 -0500 Subject: Hadrian: simple targets for building libraries and executables This patch introduces (phony) build targets of the form (1) stage:: (e.g: stage1:lib:Cabal) (2) stage:: (e.g: stage2:exe:ghc-bin) where (1) builds the given library with the stage N compiler and (2) builds the given executable with the stage N-1 compiler. This patch may be generating too many such targets but it's a first stab that we can refine. This fixes #15949. Test Plan: hadrian/build.sh stage1:exe:ghc-bin Reviewers: bgamari, snowleopard Reviewed By: bgamari Subscribers: rwbarton, carter GHC Trac Issues: #15949 Differential Revision: https://phabricator.haskell.org/D5434 --- hadrian/hadrian.cabal | 1 + 1 file changed, 1 insertion(+) (limited to 'hadrian/hadrian.cabal') diff --git a/hadrian/hadrian.cabal b/hadrian/hadrian.cabal index c70c215ea7..669d16c776 100644 --- a/hadrian/hadrian.cabal +++ b/hadrian/hadrian.cabal @@ -67,6 +67,7 @@ executable hadrian , Rules.Program , Rules.Register , Rules.Selftest + , Rules.SimpleTargets , Rules.SourceDist , Rules.Test , Settings -- cgit v1.2.1