aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PACKAGING.md3
-rw-r--r--hello_complex/fpm.toml1
-rw-r--r--hello_world/fpm.toml1
-rw-r--r--src/Fpm.hs9
4 files changed, 3 insertions, 11 deletions
diff --git a/PACKAGING.md b/PACKAGING.md
index 1dc580f..065dbc3 100644
--- a/PACKAGING.md
+++ b/PACKAGING.md
@@ -66,7 +66,6 @@ license = "MIT"
author = "Jane Programmer"
maintainer = "jane@example.com"
copyright = "2020 Jane Programmer"
-compiler = "gfortran"
```
The preamble includes some metadata, such as `license`, `author`, and similar,
@@ -462,7 +461,6 @@ license = "MIT"
author = "Jane Programmer"
maintainer = "jane@example.com"
copyright = "2020 Jane Programmer"
-compiler = "gfortran"
[library]
source-dir="src"
@@ -493,7 +491,6 @@ license = "MIT"
author = "Jane Programmer"
maintainer = "jane@example.com"
copyright = "2020 Jane Programmer"
-compiler = "gfortran"
[library]
source-dir="src"
diff --git a/hello_complex/fpm.toml b/hello_complex/fpm.toml
index 8408d3a..d185745 100644
--- a/hello_complex/fpm.toml
+++ b/hello_complex/fpm.toml
@@ -1,5 +1,4 @@
name = "hello_complex"
-compiler = "gfortran"
[library]
source-dir="source"
diff --git a/hello_world/fpm.toml b/hello_world/fpm.toml
index d715850..b80e8d1 100644
--- a/hello_world/fpm.toml
+++ b/hello_world/fpm.toml
@@ -1,2 +1 @@
name = "hello_world"
-compiler = "gfortran"
diff --git a/src/Fpm.hs b/src/Fpm.hs
index 6bd6abb..0bc909d 100644
--- a/src/Fpm.hs
+++ b/src/Fpm.hs
@@ -47,8 +47,7 @@ import qualified Toml
data Arguments = Arguments { command' :: Command, release :: Bool }
data TomlSettings = TomlSettings {
- tomlSettingsCompiler :: String
- , tomlSettingsProjectName :: String
+ tomlSettingsProjectName :: String
, tomlSettingsLibrary :: (Maybe Library)
, tomlSettingsExecutables :: [Executable]
, tomlSettingsTests :: [Executable]
@@ -204,9 +203,7 @@ getDirectoriesFiles dirs exts = getDirectoryFilesIO "" newPatterns
settingsCodec :: TomlCodec TomlSettings
settingsCodec =
TomlSettings
- <$> Toml.string "compiler"
- .= tomlSettingsCompiler
- <*> Toml.string "name"
+ <$> Toml.string "name"
.= tomlSettingsProjectName
<*> Toml.dioptional (Toml.table libraryCodec "library")
.= tomlSettingsLibrary
@@ -237,7 +234,7 @@ toml2AppSettings tomlSettings release = do
projectName
testSettings <- getTestSettings $ tomlSettingsTests tomlSettings
return AppSettings
- { appSettingsCompiler = tomlSettingsCompiler tomlSettings
+ { appSettingsCompiler = "gfortran"
, appSettingsProjectName = projectName
, appSettingsBuildPrefix = "build"
</> if release then "release" else "debug"