Get rid of runtime path. Allow defaultlib and debuglib switches to be given multiple times.

This commit is contained in:
Christian Kamm
2008-09-02 19:14:25 +02:00
parent 6916319f9f
commit 877da230a3
5 changed files with 35 additions and 33 deletions

View File

@@ -169,22 +169,6 @@ int linkExecutable(const char* argv0)
args.push_back(p);
}
// 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 _WIN32
int i=0;
while ((i = runtime_path.find("\\", i)) > 0)
runtime_path.replace(i, 1, "/");
#endif
if (*runtime_path.rbegin() != '/')
runtime_path.append("/");
runtime_path.append("libtango-base-llvmdc-native.a");
args.push_back(runtime_path.c_str());
// print link command?
if (!global.params.quiet || global.params.verbose)
{