1 //===--- Haiku.cpp - Haiku ToolChain Implementations ------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 #include "CommonArgs.h"
13 using namespace clang::driver;
14 using namespace clang::driver::toolchains;
15 using namespace clang;
16 using namespace llvm::opt;
18 /// Haiku - Haiku tool chain which can call as(1) and ld(1) directly.
20 Haiku::Haiku(const Driver &D, const llvm::Triple& Triple, const ArgList &Args)
21 : Generic_ELF(D, Triple, Args) {
25 std::string Haiku::findLibCxxIncludePath() const {
26 return getDriver().SysRoot + "/system/develop/headers/c++/v1";
29 void Haiku::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
30 llvm::opt::ArgStringList &CC1Args) const {
31 addLibStdCXXIncludePaths(getDriver().SysRoot, "/system/develop/headers/c++",
32 getTriple().str(), "", "", "", DriverArgs, CC1Args);