Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change build product rule signature #15

Open
kaoskorobase opened this issue Aug 15, 2014 · 0 comments
Open

Change build product rule signature #15

kaoskorobase opened this issue Aug 15, 2014 · 0 comments
Milestone

Comments

@kaoskorobase
Copy link
Member

Change signature of build rules in Shake.Development.Language.C.Rules to

buildProduct ::
   Action ToolChain -- ^ Action returning a target 'ToolChain'
-> Action (BuildFlags -> BuildFlags) -- ^ Action returning a 'BuildFlags' modifier
-> Action [FilePath] -- ^ Action returning a list of input source files
-> Rules (FilePath -> Action()) -- ^ Rule returning an action that produces the given output file

This would allow for further build product processing without introducing intermediate (phony) targets. The old rules functions can still be provided as trivial wrappers of the new ones:

buildProcuct_ toolChain flags sources output =
  (output *>) =<< buildProduct toolChain flags sources
@kaoskorobase kaoskorobase changed the title Change rule result type to Rules (FilePath -> Action ()) Change build product rule signature Oct 16, 2014
@kaoskorobase kaoskorobase added this to the RC 0.5.0 milestone Oct 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant