-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add src-loc test for 32 bit pseudo relocation issue
See #2228
- Loading branch information
1 parent
0e457c6
commit 9a65377
Showing
4 changed files
with
48 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# See https://github.com/input-output-hk/haskell.nix/issues/2228 | ||
{ stdenv, lib, util, project', haskellLib, recurseIntoAttrs, testSrc, compiler-nix-name, evalPackages, buildPackages }: | ||
|
||
with lib; | ||
|
||
let | ||
project = project' { | ||
inherit compiler-nix-name evalPackages; | ||
src = testSrc "src-loc"; | ||
}; | ||
|
||
packages = project.hsPkgs; | ||
|
||
in recurseIntoAttrs rec { | ||
meta.disabled = stdenv.hostPlatform.isGhcjs; | ||
|
||
ifdInputs = { | ||
inherit (project) plan-nix; | ||
}; | ||
|
||
build = packages.src-loc.components.exes.src-loc; | ||
check = haskellLib.check build; | ||
build-profiled = packages.src-loc.components.exes.src-loc.profiled; | ||
check-profiled = haskellLib.check build-profiled; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
cabal-version: >=1.10 | ||
name: src-loc | ||
version: 0.1.0.0 | ||
license: PublicDomain | ||
author: Hamish Mackenzie | ||
maintainer: [email protected] | ||
build-type: Simple | ||
|
||
executable src-loc | ||
build-depends: base | ||
main-is: Main.hs | ||
hs-source-dirs: src | ||
default-language: Haskell2010 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module Main where | ||
|
||
import GHC.Types.SrcLoc | ||
|
||
main :: IO () | ||
main = putStrLn "yeah" | ||
|
||
data Foo = Foo PsLoc | ||
|