File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 25
25
inherit modules ;
26
26
} ;
27
27
28
+ exe = ( project . getComponent "cabal-simple:exe:cabal-simple" )
29
+ . override ( lib . optionalAttrs stdenv . hostPlatform . isAndroid { setupBuildFlags = [ "--ghc-option=-optl-static" ] ; } ) ;
30
+
28
31
in recurseIntoAttrs {
29
32
# This test seeems to be broken on 8.6 and 8.8 and ghcjs
30
33
meta . disabled = compiler-nix-name == "ghc865" || compiler-nix-name == "ghc884" || stdenv . hostPlatform . isGhcjs ;
@@ -35,7 +38,7 @@ in recurseIntoAttrs {
35
38
name = "cabal-simple-prof-test" ;
36
39
37
40
buildCommand = ''
38
- exe="${ ( project . getComponent "cabal-simple: exe:cabal-simple" ) . exePath } "
41
+ exe="${ exe . exePath } "
39
42
40
43
size=$(command stat --format '%s' "$exe")
41
44
printf "size of executable $exe is $size. \n" >& 2
@@ -45,7 +48,7 @@ in recurseIntoAttrs {
45
48
# Curiosity: cross compilers prodcing profiling with `+RTS -p -h` lead to the following cryptic message:
46
49
# cabal-simple: invalid heap profile option: -h*
47
50
# Hence we pass `-hc`.
48
- ${ toString ( project . getComponent "cabal-simple: exe:cabal-simple" ) . config . testWrapper } $exe +RTS -p -hc
51
+ ${ toString exe . config . testWrapper } $exe +RTS -p -hc
49
52
50
53
touch $out
51
54
'' ;
You can’t perform that action at this time.
0 commit comments