Skip to content

[nix-local-build] Flag application to local packages, --disable-optimization and vendoring #3334

Closed

Description

@ezyang

Consider these two facts:

  1. I may pass --disable-optimization because I want my builds to be as fast as possible
  2. The set of packages I rebuild frequently may be a superset of the local packages, because I may vendor a package. For example, in Cabal itself, we have the dependency chain cabal-install depends on hackage-security depends on Cabal; Cabal and cabal-install are local, but hackage-security counts as part of the rebuild set.

Now the question: does cabal new-build --disable-optimization exe:cabal on the Cabal project build hackage-security with optimization or not? The answer, it DOES build it with optimization. This is slightly surprising to say the least.

Activity

  1. added
    cabal-install: v2-build system
    on Apr 14, 2016
  2. ezyang commented on Aug 28, 2016

    @ezyang
    ContributorAuthor

    Subsumed by #3725.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cabal-install: v2-build systemtype: discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions