[MLton-commit] r6695
Wesley Terpstra
wesley at mlton.org
Fri Aug 8 07:15:17 PDT 2008
The compiler shouldn't be using '/'s for paths.
----------------------------------------------------------------------
U mlton/trunk/mlton/main/main.fun
----------------------------------------------------------------------
Modified: mlton/trunk/mlton/main/main.fun
===================================================================
--- mlton/trunk/mlton/main/main.fun 2008-08-08 12:13:09 UTC (rev 6694)
+++ mlton/trunk/mlton/main/main.fun 2008-08-08 14:15:15 UTC (rev 6695)
@@ -904,7 +904,10 @@
else ac)
val asOpts = addTargetOpts asOpts
val ccOpts = addTargetOpts ccOpts
- val ccOpts = concat ["-I", !libTargetDir, "/include"] :: ccOpts
+ val ccOpts = concat ["-I",
+ OS.Path.mkAbsolute { path = "include",
+ relativeTo = !libTargetDir }]
+ :: ccOpts
val linkOpts =
List.concat [[concat ["-L", !libTargetDir]],
if !format = Library then
@@ -916,11 +919,11 @@
addTargetOpts linkOpts]
val linkArchives =
if !debugRuntime then
- [!libTargetDir ^ "/libmlton-gdb.a",
- !libTargetDir ^ "/libgdtoa-gdb.a"]
+ [OS.Path.joinDirFile { dir = !libTargetDir, file = "libmlton-gdb.a" },
+ OS.Path.joinDirFile { dir = !libTargetDir, file = "libgdtoa-gdb.a" }]
else
- [!libTargetDir ^ "/libmlton.a",
- !libTargetDir ^ "/libgdtoa.a"]
+ [OS.Path.joinDirFile { dir = !libTargetDir, file = "libmlton.a" },
+ OS.Path.joinDirFile { dir = !libTargetDir, file = "libgdtoa.a" }]
val _ =
if not (hasCodegen (!codegen))
then usage (concat ["can't use ",
More information about the MLton-commit
mailing list