Moved the extra parameters in the compiler commands so that the source file is always the last parameter
This commit is contained in:
parent
ed63476ad7
commit
014f83d65d
|
@ -9,20 +9,17 @@ tockIncludeFlags :: String
|
||||||
tockIncludeFlags = "-I. -I" ++ pkgIncludeDir
|
tockIncludeFlags = "-I. -I" ++ pkgIncludeDir
|
||||||
|
|
||||||
cCommand :: String -> String -> String -> String
|
cCommand :: String -> String -> String -> String
|
||||||
cCommand inp out extra = "@CC@ @TOCK_CFLAGS@ " ++ tockIncludeFlags ++ " -c -o " ++ out ++ " " ++ inp
|
cCommand inp out extra = "@CC@ @TOCK_CFLAGS@ " ++ tockIncludeFlags ++ " -c -o " ++ out ++ " " ++ extra ++ " " ++ inp
|
||||||
++ " " ++ extra
|
|
||||||
|
|
||||||
cAsmCommand :: String -> String -> String -> String
|
cAsmCommand :: String -> String -> String -> String
|
||||||
cAsmCommand inp out extra = "@CC@ @TOCK_CFLAGS@ -S " ++ tockIncludeFlags ++ " -o " ++ out ++ " " ++ inp ++
|
cAsmCommand inp out extra = "@CC@ @TOCK_CFLAGS@ -S " ++ tockIncludeFlags ++ " -o " ++ out ++ " " ++ extra ++ " " ++ inp
|
||||||
" " ++ extra
|
|
||||||
|
|
||||||
cLinkCommand :: [String] -> String -> String -> String
|
cLinkCommand :: [String] -> String -> String -> String
|
||||||
cLinkCommand files out extra = "@CC@ @TOCK_CFLAGS@ -o " ++ out ++ " " ++ (concat (intersperse " " files)) ++ " @TOCK_CLDFLAGS@"
|
cLinkCommand files out extra = "@CC@ @TOCK_CFLAGS@ -o " ++ out ++ " " ++ (concat (intersperse " " files)) ++ " @TOCK_CLDFLAGS@"
|
||||||
++ " " ++ extra
|
++ " " ++ extra
|
||||||
|
|
||||||
cxxCommand :: String -> String -> String -> String
|
cxxCommand :: String -> String -> String -> String
|
||||||
cxxCommand inp out extra = "@CXX@ @TOCK_CXXFLAGS@ " ++ tockIncludeFlags ++ " -o " ++ out ++ " " ++ inp ++ " @TOCK_CXXLDFLAGS@"
|
cxxCommand inp out extra = "@CXX@ @TOCK_CXXFLAGS@ " ++ tockIncludeFlags ++ " -o " ++ out ++ " @TOCK_CXXLDFLAGS@ " ++ extra ++ " " ++ inp
|
||||||
++ " " ++ extra
|
|
||||||
|
|
||||||
hCommand :: String -> String -> String
|
hCommand :: String -> String -> String
|
||||||
hCommand inp out = "@GHC@ --make " ++ inp ++ " -o " ++ out
|
hCommand inp out = "@GHC@ --make " ++ inp ++ " -o " ++ out
|
||||||
|
|
Loading…
Reference in New Issue
Block a user