diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2019-04-01 21:10:03 +0200 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2019-04-01 21:10:03 +0200 |
commit | ac027c3edc58680199aff1253efbacaa5eefd3d6 (patch) | |
tree | 8eadca8c34208fefccaa29bea3ad18b4fc041083 /lib | |
parent | a078ea73f07f95b0e55d13b51c104be749d0ed3d (diff) |
Fix getHelper ignoring withProgs environment
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Distribution/Helper.hs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Distribution/Helper.hs b/lib/Distribution/Helper.hs index 38f819f..6e97d53 100644 --- a/lib/Distribution/Helper.hs +++ b/lib/Distribution/Helper.hs @@ -656,11 +656,8 @@ getHelper ProjInfo{piCabalVersion} QueryEnv{..} helper_main $ cabal_file : distdir : args getHelper proj_info qe@QueryEnv{..} = do withVerbosity $ withProgs (piImpl proj_info) qe $ do - let comp = mkCompHelperEnv qeProjLoc qeDistDir proj_info - let ?progs = qePrograms - ?cprogs = qeCompPrograms t0 <- Clock.getTime Monotonic - eexe <- compileHelper comp + eexe <- compileHelper $ mkCompHelperEnv qeProjLoc qeDistDir proj_info t1 <- Clock.getTime Monotonic let dt = (/10e9) $ fromInteger $ Clock.toNanoSecs $ Clock.diffTimeSpec t0 t1 dt :: Float |