# HG changeset patch # User Tomas Lindquist Olsen # Date 1217160922 -7200 # Node ID 723027dd9593436dbb30686f7417579438d348c3 # Parent 94394be615893405c278a09b1681594cb5f7349e Fixed path seperator issue on windows in linker. diff -r 94394be61589 -r 723027dd9593 gen/linker.cpp --- 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");