mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-11-28 20:03:53 +01:00
[svn r346] Fixed #55 - llvmdc can link as fast as dmd now!
Made runtime to compile to native by default. Changed linker.cpp to link in native runtime library. This change requires a runtime rebuild as well as a new symbolic link in lib/ to tango/lib/libtango-base-llvmdc-native.a.
This commit is contained in:
+1
-2
@@ -150,7 +150,6 @@ int linkExecutable(const char* argv0)
|
||||
}
|
||||
|
||||
// default libs
|
||||
args.push_back("-ltango-base-c-llvmdc");
|
||||
args.push_back("-lpthread");
|
||||
args.push_back("-ldl");
|
||||
args.push_back("-lm");
|
||||
@@ -167,7 +166,7 @@ int linkExecutable(const char* argv0)
|
||||
std::string runtime_path(global.params.runtimePath);
|
||||
if (*runtime_path.rbegin() != '/')
|
||||
runtime_path.append("/");
|
||||
runtime_path.append("libtango-base-llvmdc.a");
|
||||
runtime_path.append("libtango-base-llvmdc-native.a");
|
||||
args.push_back(runtime_path.c_str());
|
||||
|
||||
// print link command?
|
||||
|
||||
Reference in New Issue
Block a user