cpp
A configuration fragment for C++.Methods
- ar_executable
- built_in_include_directories
- c_options
- compiler
- compiler_executable
- compiler_options
- conlyopts
- copts
- cpu
- cxx_options
- cxxopts
- dynamic_link_options
- fully_static_link_options
- ld_executable
- libc
- link_options
- linkopts
- mostly_static_link_options
- nm_executable
- objcopy_executable
- objdump_executable
- preprocessor_executable
- strip_executable
- sysroot
- target_gnu_system_name
- unfiltered_compiler_options
ar_executable
string cpp.ar_executableDeprecated (use CcToolchainInfo instead). Path to GNU binutils 'ar' binary.
built_in_include_directories
list cpp.built_in_include_directoriesDeprecated (use CcToolchainInfo instead). Built-in system include paths for the toolchain compiler. All paths in this list should be relative to the exec directory. They may be absolute if they are also installed on the remote build nodes or for local compilation.
c_options
list cpp.c_optionsDeprecated (use methods in cc_common instead). Returns the list of additional C-specific options to use for compiling C. These should be go on the command line after the common options returned by
compiler_options
compiler
string cpp.compilerDeprecated (use CcToolchainInfo instead). C++ compiler.
compiler_executable
string cpp.compiler_executableDeprecated (use CcToolchainInfo instead). Path to C/C++ compiler binary.
compiler_options
list cpp.compiler_options(features)Deprecated (use methods in cc_common instead). Returns the default options to use for compiling C, C++, and assembler. This is just the options that should be used for all three languages. There may be additional C-specific or C++-specific options that should be used, in addition to the ones returned by this method
Parameters
Parameter | Description |
---|---|
features
|
Unused. |
conlyopts
list cpp.conlyoptsReturns flags passed to Bazel by --conlyopt option.
copts
list cpp.coptsReturns flags passed to Bazel by --copt option.
cpu
string cpp.cpuDeprecated (use CcToolchainInfo instead). Target CPU of the C++ toolchain.
cxx_options
list cpp.cxx_options(features)Deprecated (use methods in cc_common instead). Returns the list of additional C++-specific options to use for compiling C++. These should be go on the command line after the common options returned by
compiler_options
Parameters
Parameter | Description |
---|---|
features
|
Unused. |
cxxopts
list cpp.cxxoptsReturns flags passed to Bazel by --cxxopt option.
dynamic_link_options
list cpp.dynamic_link_options(features, shared_lib)Deprecated (use methods in cc_common instead). Returns the immutable list of linker options for artifacts that are not fully or mostly statically linked. Does not include command-line options passed via --linkopt or --linkopts.
Parameters
Parameter | Description |
---|---|
features
|
Unused. |
shared_lib
|
If true, returns the link options for a shared library. |
fully_static_link_options
list cpp.fully_static_link_options(features, shared_lib)Deprecated (use methods in cc_common instead). Returns the immutable list of linker options for fully statically linked outputs. Does not include command-line options passed via --linkopt or --linkopts.
Parameters
Parameter | Description |
---|---|
features
|
Unused. |
shared_lib
|
If true, returns the link options for a shared library. |
ld_executable
string cpp.ld_executableDeprecated (use CcToolchainInfo instead). Path to the linker binary.
libc
string cpp.libcDeprecated (use CcToolchainInfo instead). libc version string.
link_options
list cpp.link_optionsDeprecated (use methods in cc_common instead). Returns the set of command-line linker options, including any flags inferred from the command-line options.
linkopts
list cpp.linkoptsReturns flags passed to Bazel by --linkopt option.
mostly_static_link_options
list cpp.mostly_static_link_options(features, shared_lib)Deprecated (use methods in cc_common instead). Returns the immutable list of linker options for mostly statically linked outputs. Does not include command-line options passed via --linkopt or--linkopts.
Parameters
Parameter | Description |
---|---|
features
|
Unused. |
shared_lib
|
If true, returns the link options for a shared library. |
nm_executable
string cpp.nm_executableDeprecated (use CcToolchainInfo instead). Path to GNU binutils 'nm' binary.
objcopy_executable
string cpp.objcopy_executableDeprecated (use CcToolchainInfo instead). Path to GNU binutils 'objcopy' binary.
objdump_executable
string cpp.objdump_executableDeprecated (use CcToolchainInfo instead). Path to GNU binutils 'objdump' binary.
preprocessor_executable
string cpp.preprocessor_executableDeprecated (use CcToolchainInfo instead). Path to C/C++ preprocessor binary.
strip_executable
string cpp.strip_executableDeprecated (use CcToolchainInfo instead). Path to GNU binutils 'strip' binary.
sysroot
string cpp.sysrootDeprecated (use CcToolchainInfo instead). Returns the sysroot to be used. If the toolchain compiler does not support different sysroots, or the sysroot is the same as the default sysroot, then this method returns
None
.
target_gnu_system_name
string cpp.target_gnu_system_nameDeprecated (use CcToolchainInfo instead). The GNU System Name.
unfiltered_compiler_options
list cpp.unfiltered_compiler_options(features)Deprecated (use methods in cc_common instead). Returns the default list of options which cannot be filtered by BUILD rules. These should be appended to the command line after filtering.
Parameters
Parameter | Description |
---|---|
features
|
Unused. |