diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 0c0e74eeea..1f9d6ee4ef 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -577,8 +577,10 @@ tasks: - "-//with_global_alloc/..." build_flags: - "--@rules_rust//rust/settings:experimental_use_cc_common_link=True" + - "--@rules_rust//rust/settings:codegen_units=-1" test_flags: - "--@rules_rust//rust/settings:experimental_use_cc_common_link=True" + - "--@rules_rust//rust/settings:codegen_units=-1" cc_common_link_with_global_alloc_ubuntu2004: name: Build via cc_common.link using a global allocator platform: ubuntu2004 @@ -590,9 +592,11 @@ tasks: build_flags: - "--@rules_rust//rust/settings:experimental_use_cc_common_link=True" - "--@rules_rust//rust/settings:experimental_use_global_allocator=True" + - "--@rules_rust//rust/settings:codegen_units=-1" test_flags: - "--@rules_rust//rust/settings:experimental_use_cc_common_link=True" - "--@rules_rust//rust/settings:experimental_use_global_allocator=True" + - "--@rules_rust//rust/settings:codegen_units=-1" cc_common_link_no_std_ubuntu2004: name: Build with no_std + alloc using cc_common.link infrastructure for linking platform: ubuntu2004 @@ -606,11 +610,13 @@ tasks: - "--@rules_rust//rust/settings:experimental_use_cc_common_link=True" - "--@rules_rust//rust/settings:experimental_use_global_allocator=True" - "--@rules_rust//rust/settings:no_std=alloc" + - "--@rules_rust//rust/settings:codegen_units=-1" test_flags: - "--@rules_rust//rust/toolchain/channel=nightly" - "--@rules_rust//rust/settings:experimental_use_cc_common_link=True" - "--@rules_rust//rust/settings:experimental_use_global_allocator=True" - "--@rules_rust//rust/settings:no_std=alloc" + - "--@rules_rust//rust/settings:codegen_units=-1" no_std_ubuntu2004: name: Build with no_std + alloc platform: ubuntu2004 @@ -622,9 +628,11 @@ tasks: build_flags: - "--@rules_rust//rust/toolchain/channel=nightly" - "--@rules_rust//rust/settings:no_std=alloc" + - "--@rules_rust//rust/settings:codegen_units=-1" test_flags: - "--@rules_rust//rust/toolchain/channel=nightly" - "--@rules_rust//rust/settings:no_std=alloc" + - "--@rules_rust//rust/settings:codegen_units=-1" bzlmod_repo_mapping_runfiles: name: bzlmod repo mapping test platform: ubuntu2004