Mercurial > projects > ldc
changeset 407:723027dd9593
Fixed path seperator issue on windows in linker.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Sun, 27 Jul 2008 14:15:22 +0200 |
parents | 94394be61589 |
children | dc7dff3ce72e |
files | gen/linker.cpp |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/linker.cpp Sun Jul 27 14:11:31 2008 +0200 +++ b/gen/linker.cpp Sun Jul 27 14:15:22 2008 +0200 @@ -172,6 +172,15 @@ // runtime library // must be linked in last to null terminate the moduleinfo appending list std::string runtime_path(global.params.runtimePath); + + // path seperator can be \ on windows, but we check for / + if (global.params.isWindows) + { + int i=0; + while ((i = runtime_path.find("\\", i)) > 0) + runtime_path.replace(i, 1, "/"); + } + if (*runtime_path.rbegin() != '/') runtime_path.append("/"); runtime_path.append("libtango-base-llvmdc-native.a");