Reintroduce "Add support for Axle library." from 9292. Added an dependency to prevent building the

core and axle core at the same time.


Swift SVN r9309
This commit is contained in:
Mon Ping Wang
2013-10-14 07:51:19 +00:00
parent f40ba621a8
commit 00467ba953
17 changed files with 326 additions and 26 deletions

View File

@@ -28,7 +28,10 @@ void CompilerInvocation::setMainExecutablePath(StringRef Path) {
llvm::SmallString<128> LibPath(Path);
llvm::sys::path::remove_filename(LibPath); // Remove /swift
llvm::sys::path::remove_filename(LibPath); // Remove /bin
llvm::sys::path::append(LibPath, "lib", "swift");
if (getLangOptions().Axle)
llvm::sys::path::append(LibPath, "lib", "axle");
else
llvm::sys::path::append(LibPath, "lib", "swift");
setRuntimeIncludePath(LibPath.str());
}