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