-f execonly now builts RTS too

This only takes a second or two, and it's useful to be able to build it
without building all the other libraries.
This commit is contained in:
Edwin Brady 2017-08-05 14:30:51 +01:00
parent a5ff76d9d1
commit b30057fe70

View File

@ -240,9 +240,10 @@ idrisPreBuild args flags = do
return (Nothing, [])
#endif
idrisBuild _ flags _ local = unless (execOnly (configFlags local)) $ do
buildStdLib
buildRTS
idrisBuild _ flags _ local
= if (execOnly (configFlags local)) then buildRTS
else do buildStdLib
buildRTS
where
verbosity = S.fromFlag $ S.buildVerbosity flags
@ -261,10 +262,11 @@ idrisBuild _ flags _ local = unless (execOnly (configFlags local)) $ do
-- -----------------------------------------------------------------------------
-- Copy/Install
idrisInstall verbosity copy pkg local = unless (execOnly (configFlags local)) $ do
installStdLib
installRTS
installManPage
idrisInstall verbosity copy pkg local
= if (execOnly (configFlags local)) then installRTS
else do installStdLib
installRTS
installManPage
where
target = datadir $ L.absoluteInstallDirs pkg local copy