Haiku.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. //===--- Haiku.cpp - Haiku ToolChain Implementations ------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #include "Haiku.h"
  9. #include "CommonArgs.h"
  10. using namespace clang::driver;
  11. using namespace clang::driver::toolchains;
  12. using namespace clang;
  13. using namespace llvm::opt;
  14. /// Haiku - Haiku tool chain which can call as(1) and ld(1) directly.
  15. Haiku::Haiku(const Driver &D, const llvm::Triple& Triple, const ArgList &Args)
  16. : Generic_ELF(D, Triple, Args) {
  17. }
  18. void Haiku::addLibCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
  19. llvm::opt::ArgStringList &CC1Args) const {
  20. addSystemInclude(DriverArgs, CC1Args,
  21. getDriver().SysRoot + "/system/develop/headers/c++/v1");
  22. }
  23. void Haiku::addLibStdCxxIncludePaths(const llvm::opt::ArgList &DriverArgs,
  24. llvm::opt::ArgStringList &CC1Args) const {
  25. addLibStdCXXIncludePaths(getDriver().SysRoot + "/system/develop/headers/c++",
  26. getTriple().str(), "", DriverArgs, CC1Args);
  27. }