Add support for Axle library. Please note that AxeBuiltins.gyb will be

expanded soon for the other graphics builtins.


Swift SVN r9294
This commit is contained in:
Mon Ping Wang
2013-10-13 19:54:01 +00:00
parent 74ba1e8851
commit 41aca3e7e6
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());
}