IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/cpp
You can read about the migration, and let us know what you think.
Extensions >
API reference >
cpp
cpp
A configuration fragment for C++.apple_bitcode_mode
apple_bitcode_mode cpp.apple_bitcode_modeReturns the Bitcode mode to use for compilation steps.
This field is only valid for Apple, and only for device builds; for simulator builds, it always returns 'none'
.
apple_generate_dsym
bool cpp.apple_generate_dsymWhether to generate Apple debug symbol(.dSYM) artifacts.
conlyopts
list cpp.conlyoptsThe flags passed to Bazel by
--conlyopt
option.
copts
list cpp.coptsThe flags passed to Bazel by
--copt
option.
custom_malloc
Label cpp.custom_mallocReturns label pointed to by
--custom_malloc
option. Can be accessed with configuration_field
:attr.label(May return
default = configuration_field(
fragment = "cpp",
name = "custom_malloc"
)
)
None
.
cxxopts
list cpp.cxxoptsThe flags passed to Bazel by
--cxxopt
option.
linkopts
list cpp.linkoptsThe flags passed to Bazel by
--linkopt
option.