aboutsummaryrefslogtreecommitdiff
path: root/src/Build.hs
diff options
context:
space:
mode:
authorOndřej Čertík <ondrej@certik.us>2020-07-13 14:06:34 -0600
committerGitHub <noreply@github.com>2020-07-13 14:06:34 -0600
commit4b2f8bca5b2289d18d5f0b6f7e17a0ccac428b47 (patch)
treef40be245aac56feab85b05d7f63df0bbba2b1afb /src/Build.hs
parent02b07f45052d5f5f69697aacf646ea8736880fb8 (diff)
parentb86c74bef761ec48ff17cf043a26b11b9bf3954b (diff)
downloadfpm-4b2f8bca5b2289d18d5f0b6f7e17a0ccac428b47.tar.gz
fpm-4b2f8bca5b2289d18d5f0b6f7e17a0ccac428b47.zip
Merge pull request #117 from everythingfunctional/FixExecutableSourceName
Fix bug with case in program source file name.
Diffstat (limited to 'src/Build.hs')
-rw-r--r--src/Build.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Build.hs b/src/Build.hs
index 67ec2f9..ffbf264 100644
--- a/src/Build.hs
+++ b/src/Build.hs
@@ -120,7 +120,7 @@ buildProgram programDirectory libraryDirectories sourceExtensions buildDirectory
need allObjectFiles
need archives
cmd compiler allObjectFiles archives ["-o", executable] flags
- buildDirectory </> programSource -<.> "o" %> \objectFile -> do
+ buildDirectory </> (map toLower programSource) -<.> "o" %> \objectFile -> do
let realObjectFile = foldl (</>) "" $ splitDirectories objectFile
let sourceFile = programDirectory </> programSource
need [sourceFile]