Skip to content

Commit

Permalink
Set --jobs for macOS cross-compile builds in .bazelrc to avoid bein…
Browse files Browse the repository at this point in the history
…g overridden

`rbe_cross_compile_macos_x86` expands `rbe_cross_compile_base` which in turn expands `rbe_base` which has `--jobs=800`. We avoid the jobs setting being overridden by setting it after `--config rbe_cross_compile_base`.

PiperOrigin-RevId: 603804012
  • Loading branch information
nitins17 authored and copybara-github committed Feb 2, 2024
1 parent 67e69b0 commit 4fd0d3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -879,5 +879,8 @@ build:rbe_cross_compile_macos_x86 --config=rbe_cross_compile_base
test:rbe_cross_compile_macos_x86 --config=rbe_cross_compile_base
# Increase the test timeout as tests often take longer on mac.
test:rbe_cross_compile_macos_x86 --test_timeout=300,450,1200,3600
# Limit jobs to 100 to avoid running into "out of memory" issues (b/316266643)
build:rbe_cross_compile_macos_x86 --jobs=100
test:rbe_cross_compile_macos_x86 --jobs=100
# END MACOS CROSS-COMPILE CONFIGS
# END CROSS-COMPILE CONFIGS
3 changes: 3 additions & 0 deletions third_party/tsl/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -879,5 +879,8 @@ build:rbe_cross_compile_macos_x86 --config=rbe_cross_compile_base
test:rbe_cross_compile_macos_x86 --config=rbe_cross_compile_base
# Increase the test timeout as tests often take longer on mac.
test:rbe_cross_compile_macos_x86 --test_timeout=300,450,1200,3600
# Limit jobs to 100 to avoid running into "out of memory" issues (b/316266643)
build:rbe_cross_compile_macos_x86 --jobs=100
test:rbe_cross_compile_macos_x86 --jobs=100
# END MACOS CROSS-COMPILE CONFIGS
# END CROSS-COMPILE CONFIGS

0 comments on commit 4fd0d3c

Please sign in to comment.