diff options
author | Brad Richardson <brichardson@structint.com> | 2020-03-28 13:28:29 -0500 |
---|---|---|
committer | Brad Richardson <brichardson@structint.com> | 2020-03-28 13:28:29 -0500 |
commit | f12dbc32b463f4c54737bbd56bdccb30115a7658 (patch) | |
tree | c0989d831c14b502cbb9a72751f0d6b9999d8d79 /app/Main.hs | |
parent | db8ee601cdb4fe967105a73929cbbd288a41ce1a (diff) | |
download | fpm-f12dbc32b463f4c54737bbd56bdccb30115a7658.tar.gz fpm-f12dbc32b463f4c54737bbd56bdccb30115a7658.zip |
Switch to building one program at a time per definitions from fpm.toml
Diffstat (limited to 'app/Main.hs')
-rw-r--r-- | app/Main.hs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/app/Main.hs b/app/Main.hs index eceb260..3ad22d1 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -3,7 +3,7 @@ module Main where import Build ( buildLibrary - , buildPrograms + , buildProgram ) import Data.Text ( Text , unpack @@ -61,12 +61,14 @@ build settings = do ["-g", "-Wall", "-Wextra", "-Werror", "-pedantic"] "library" [] - buildPrograms "app" - ["build" </> "library"] - [".f90", ".f", ".F", ".F90", ".f95", ".f03"] - ("build" </> "app") - (unpack $ compiler settings) - ["-g", "-Wall", "-Wextra", "-Werror", "-pedantic"] + buildProgram "app" + ["build" </> "library"] + [".f90", ".f", ".F", ".F90", ".f95", ".f03"] + ("build" </> "app") + (unpack $ compiler settings) + ["-g", "-Wall", "-Wextra", "-Werror", "-pedantic"] + "example_project" + "main.f90" getArguments :: IO Arguments getArguments = execParser |