10#ifndef LLVM_CLANG_DRIVER_MULTILIBBUILDER_H
11#define LLVM_CLANG_DRIVER_MULTILIBBUILDER_H
27 std::string GCCSuffix;
29 std::string IncludeSuffix;
34 StringRef IncludeSuffix);
42 assert(GCCSuffix.empty() ||
43 (StringRef(GCCSuffix).front() ==
'/' && GCCSuffix.size() > 1));
53 assert(OSSuffix.empty() ||
54 (StringRef(OSSuffix).front() ==
'/' && OSSuffix.size() > 1));
64 assert(IncludeSuffix.empty() || (StringRef(IncludeSuffix).front() ==
'/' &&
65 IncludeSuffix.size() > 1));
89 return GCCSuffix.empty() && OSSuffix.empty() && IncludeSuffix.empty();
This corresponds to a single GCC multilib, or a segment of one controlled by a command line flag.
bool isValid() const
Check whether any of the 'against' flags contradict the 'for' flags.
MultilibBuilder & flag(StringRef Flag, bool Disallow=false)
Add a flag to the flags list Flag must be a flag accepted by the driver.
const std::string & gccSuffix() const
Get the detected GCC installation path suffix for the multi-arch target variant.
const std::string & includeSuffix() const
Get the include directory suffix.
const std::string & osSuffix() const
Get the detected os path suffix for the multi-arch target variant.
bool isDefault() const
Check whether the default is selected.
std::vector< std::string > flags_list
Multilib makeMultilib() const
const flags_list & flags() const
Get the flags that indicate or contraindicate this multilib's use All elements begin with either '-' ...
This class can be used to create a MultilibSet, and contains helper functions to add combinations of ...
MultilibSetBuilder & Maybe(const MultilibBuilder &M)
Add an optional Multilib segment.
MultilibSetBuilder & FilterOut(const char *Regex)
Filter out those Multilibs whose gccSuffix matches the given expression.
MultilibSetBuilder & Either(const MultilibBuilder &M1, const MultilibBuilder &M2)
Add a set of mutually incompatible Multilib segments.
std::vector< MultilibBuilder > multilib_list
MultilibSetBuilder()=default
MultilibSet makeMultilibSet() const
See also MultilibSetBuilder for combining multilibs into a set.
This corresponds to a single GCC Multilib, or a segment of one controlled by a command line flag.
The JSON file list parser is used to communicate input to InstallAPI.