Files
ldc/gen/programs.h
kai f1c71e4bac 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.
2013-06-15 19:52:29 +02:00

42 lines
912 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//===-- 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