1 //===--- Hurd.h - Hurd ToolChain Implementations ----------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_Hurd_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_Hurd_H
13 #include "clang/Driver/ToolChain.h"
17 namespace toolchains
{
19 class LLVM_LIBRARY_VISIBILITY Hurd
: public Generic_ELF
{
21 Hurd(const Driver
&D
, const llvm::Triple
&Triple
,
22 const llvm::opt::ArgList
&Args
);
24 bool HasNativeLLVMSupport() const override
;
27 AddClangSystemIncludeArgs(const llvm::opt::ArgList
&DriverArgs
,
28 llvm::opt::ArgStringList
&CC1Args
) const override
;
30 addLibStdCxxIncludePaths(const llvm::opt::ArgList
&DriverArgs
,
31 llvm::opt::ArgStringList
&CC1Args
) const override
;
33 std::string
getDynamicLinker(const llvm::opt::ArgList
&Args
) const override
;
35 void addExtraOpts(llvm::opt::ArgStringList
&CmdArgs
) const override
;
37 std::vector
<std::string
> ExtraOpts
;
40 Tool
*buildAssembler() const override
;
41 Tool
*buildLinker() const override
;
43 std::string
getMultiarchTriple(const Driver
&D
,
44 const llvm::Triple
&TargetTriple
,
45 StringRef SysRoot
) const override
;
48 } // end namespace toolchains
49 } // end namespace driver
50 } // end namespace clang
52 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_Hurd_H