forked from haskell/cabal
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly assign component ID/build dir for LibV09 test libraries
When building a LibV09 test library, Cabal previously dumped it into the same directory as the library proper. This means that if there are any module name conflicts, they'd override each other. Bad! The way to fix this is to build test libraries in different directories. We need to teach Cabal that not all libraries are the main library. This patch is a minimal patch to make this work for GHC; doubtless refactoring can make this generalize to all other backends (and make it hard to get wrong.) This follows the reserved namespace as per haskell#3017. Signed-off-by: Edward Z. Yang <[email protected]>
- Loading branch information
Showing
16 changed files
with
318 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.