cxx_toolchain_override
Function Signature
def cxx_toolchain_override(
*,
name: str,
default_target_platform: None | str = None,
target_compatible_with: list[str] = [],
compatible_with: list[str] = [],
exec_compatible_with: list[str] = [],
visibility: list[str | target_name_glob] = [],
within_view: list[str | target_name_glob] = ["PUBLIC"],
metadata: OpaqueMetadata = {},
tests: list[str] = [],
modifiers: OpaqueMetadata = [],
additional_c_compiler_flags: None | list[str] = None,
additional_cxx_compiler_flags: None | list[str] = None,
archive_contents: None | str = None,
archive_objects_locally: None | bool = None,
archive_symbol_table: None | bool = None,
archiver: None | str = None,
archiver_flags: None | list[str] = None,
archiver_reads_inputs: None | bool = None,
archiver_supports_argfiles: None | bool = None,
archiver_type: None | str = None,
as_compiler: None | str = None,
as_compiler_flags: None | list[str] = None,
as_preprocessor_flags: None | list[str] = None,
asm_compiler: None | str = None,
asm_compiler_flags: None | list[str] = None,
asm_compiler_type: None | str = None,
asm_preprocessor_flags: None | list[str] = None,
base: str,
bolt: None | str = None,
bolt_enabled: None | bool = None,
c_compiler: None | str = None,
c_compiler_allow_cache_upload: None | bool = None,
c_compiler_flags: None | list[str] = None,
c_preprocessor_flags: None | list[str] = None,
cuda_compiler_allow_cache_upload: None | bool = None,
cxx_compiler: None | str = None,
cxx_compiler_allow_cache_upload: None | bool = None,
cxx_compiler_flags: None | list[str] = None,
cxx_preprocessor_flags: None | list[str] = None,
dwp: None | str = None,
elf_stamp: None | str = None,
force_full_hybrid_if_capable: None | bool = None,
generate_gc_sections: None | bool = None,
generate_linker_maps: None | bool = None,
header_mode: None | str = None,
internal_tools: str = "prelude//cxx/tools:internal_tools",
libclang: None | str = None,
link_binaries_locally: None | bool = None,
link_libraries_locally: None | bool = None,
link_metadata_flag: None | str = None,
link_style: None | str = None,
link_weight: None | int = None,
linker: None | str = None,
linker_flags: None | list[str] = None,
linker_type: None | str = None,
lipo: None | str = None,
llvm_link: None | str = None,
lto_mode: None | str = None,
minimum_os_version: None | str = None,
mk_shlib_intf: None | str = None,
nm: None | str = None,
objcopy: None | str = None,
objdump: None | str = None,
object_format: str = "native",
pic_behavior: str = "supported",
platform_deps_aliases: None | list[str] = None,
platform_name: None | str = None,
post_linker_flags: None | list[str] = None,
ranlib: None | str = None,
resource_dir: None | str = None,
sanitizer_runtime_enabled: bool = False,
sanitizer_runtime_files: None | list[str] = None,
shared_library_interface_mode: None | str = None,
shared_library_name_default_prefix: None | str = None,
shared_library_name_format: None | str = None,
shared_library_versioned_name_format: None | str = None,
split_debug_mode: None | str = None,
strip: None | str = None,
strip_all_flags: None | list[str] = None,
strip_debug_flags: None | list[str] = None,
strip_non_global_flags: None | list[str] = None,
use_archiver_flags: None | bool = None,
) -> None
Parameters
-
name: (required)name of the target
-
default_target_platform: (defaults to:None)specifies the default target platform, used when no platforms are specified on the command line
-
target_compatible_with: (defaults to:[])a list of constraints that are required to be satisfied for this target to be compatible with a configuration
-
compatible_with: (defaults to:[])a list of constraints that are required to be satisfied for this target to be compatible with a configuration
-
exec_compatible_with: (defaults to:[])a list of constraints that are required to be satisfied for this target to be compatible with an execution platform
-
visibility: (defaults to:[])a list of visibility patterns restricting what targets can depend on this one
-
within_view: (defaults to:["PUBLIC"])a list of visibility patterns restricting what this target can depend on
-
metadata: (defaults to:{})a key-value map of metadata associated with this target
-
tests: (defaults to:[])a list of targets that provide tests for this one
-
modifiers: (defaults to:[])an array of modifiers associated with this target
-
c_compiler_allow_cache_upload: (defaults to:None)Whether to allow uploading of object files to cache when the compile action is executed locally and the configuration allows uploads (i.e., there is a cache configured and the client has permission to write to it).
-
cuda_compiler_allow_cache_upload: (defaults to:None)Whether to allow uploading of object files to cache when the compile action is executed locally and the configuration allows uploads (i.e., there is a cache configured and the client has permission to write to it).
-
cxx_compiler_allow_cache_upload: (defaults to:None)Whether to allow uploading of object files to cache when the compile action is executed locally and the configuration allows uploads (i.e., there is a cache configured and the client has permission to write to it).