mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user