mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 19:33:13 +01:00
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.
42 lines
912 B
C++
42 lines
912 B
C++
//===-- gen/programs.h - External tool discovery ----------------*- C++ -*-===//
|
||
//
|
||
// LDC – the LLVM D compiler
|
||
//
|
||
// This file is distributed under the BSD-style LDC license. See the LICENSE
|
||
// file for details.
|
||
//
|
||
//===----------------------------------------------------------------------===//
|
||
//
|
||
// Functions for discovering the external tools used for linking, etc.
|
||
//
|
||
//===----------------------------------------------------------------------===//
|
||
|
||
#ifndef LDC_GEN_PROGRAMS_H
|
||
#define LDC_GEN_PROGRAMS_H
|
||
|
||
#if LDC_LLVM_VER >= 304
|
||
|
||
#include <string>
|
||
|
||
std::string getGcc();
|
||
std::string getArchiver();
|
||
|
||
// For Windows with MS tool chain
|
||
std::string getLink();
|
||
std::string getLib();
|
||
|
||
#else
|
||
|
||
#include "llvm/Support/Path.h"
|
||
|
||
llvm::sys::Path getGcc();
|
||
llvm::sys::Path getArchiver();
|
||
|
||
// For Windows with MS tool chain
|
||
llvm::sys::Path getLink();
|
||
llvm::sys::Path getLib();
|
||
|
||
#endif
|
||
|
||
#endif
|