mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-02 13:03:13 +01:00
Make ldc compatible with LLVM 3.4
Development of LLVM 3.4 started with a cleanup of the path class (PathV1). The changes here let ldc compile at least with rev. 184039 of LLVM.
This commit is contained in:
@@ -102,7 +102,7 @@ static int linkObjToBinaryGcc(bool sharedLib)
|
||||
Logger::println("*** Linking executable ***");
|
||||
|
||||
// find gcc for linking
|
||||
llvm::sys::Path gcc = getGcc();
|
||||
llvm::sys::Path gcc(getGcc());
|
||||
|
||||
// build arguments
|
||||
std::vector<std::string> args;
|
||||
@@ -222,7 +222,7 @@ static int linkObjToBinaryWin(bool sharedLib)
|
||||
Logger::println("*** Linking executable ***");
|
||||
|
||||
// find link.exe for linking
|
||||
llvm::sys::Path tool = getLink();
|
||||
llvm::sys::Path tool(getLink());
|
||||
|
||||
// build arguments
|
||||
std::vector<std::string> args;
|
||||
@@ -346,7 +346,7 @@ void createStaticLibrary()
|
||||
const bool isTargetWindows = global.params.targetTriple.getOS() == llvm::Triple::Win32;
|
||||
|
||||
// find archiver
|
||||
llvm::sys::Path tool = isTargetWindows ? getLib() : getArchiver();
|
||||
llvm::sys::Path tool(isTargetWindows ? getLib() : getArchiver());
|
||||
|
||||
// build arguments
|
||||
std::vector<std::string> args;
|
||||
|
||||
Reference in New Issue
Block a user