Skip to content

Commit 41b39f0

Browse files
authored
add bots using lld (and examples with clang as a drive by) (#1221)
Fixes #1220 by adding 3 new bots: * "With Clang and LLD on Ubuntu 20.04" https://buildkite.com/bazel/rules-rust-rustlang/builds/5799#5004ea2f-8c59-4fe4-9260-8798f7f13c11 * "Examples with Clang and LLD on Ubuntu 20.04" https://buildkite.com/bazel/rules-rust-rustlang/builds/5799#7e939a36-067e-4e0e-be54-07892bb164e1 * As a drive by I noticed there was no "Examples with Clang on Ubuntu 20.04", added it as well: https://buildkite.com/bazel/rules-rust-rustlang/builds/5799#beaddc14-4df3-446e-b02b-2836ae9f8d14.
1 parent 84e98e4 commit 41b39f0

File tree

1 file changed

+37
-4
lines changed

1 file changed

+37
-4
lines changed

.bazelci/presubmit.yml

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,18 @@ tasks:
121121
- "--config=rustfmt"
122122
- "--config=clippy"
123123
- "--repo_env=CC=clang"
124-
# TODO(hlopko): Make this work (some tests were failing)
125-
# - "--linkopt=-fuse-ld=lld"
124+
build_targets: *default_linux_targets
125+
test_targets: *default_linux_targets
126+
ubuntu2004_clang_lld:
127+
name: With Clang and LLD
128+
platform: ubuntu2004
129+
shell_commands:
130+
- "sudo apt -y update && sudo apt -y install lld"
131+
build_flags:
132+
- "--config=rustfmt"
133+
- "--config=clippy"
134+
- "--repo_env=CC=clang"
135+
- "--linkopt=-fuse-ld=lld"
126136
build_targets: *default_linux_targets
127137
test_targets: *default_linux_targets
128138
ubuntu2004_rolling_clang:
@@ -132,8 +142,6 @@ tasks:
132142
- "--config=rustfmt"
133143
- "--config=clippy"
134144
- "--repo_env=CC=clang"
135-
# TODO(hlopko): Make this work (some tests were failing)
136-
# - "--linkopt=-fuse-ld=lld"
137145
build_targets: *default_linux_targets
138146
test_targets: *default_linux_targets
139147
soft_fail: yes
@@ -191,6 +199,31 @@ tasks:
191199
test_targets:
192200
- "//..."
193201
build_flags: *aspects_flags
202+
ubuntu2004_examples_clang:
203+
name: Examples with Clang
204+
platform: ubuntu2004
205+
working_directory: examples
206+
build_flags:
207+
- "--repo_env=CC=clang"
208+
build_targets:
209+
- "//..."
210+
test_targets:
211+
- "//..."
212+
build_flags: *aspects_flags
213+
ubuntu2004_examples_clang_lld:
214+
name: Examples with Clang and LLD
215+
platform: ubuntu2004
216+
shell_commands:
217+
- "sudo apt -y update && sudo apt -y install lld"
218+
working_directory: examples
219+
build_flags:
220+
- "--repo_env=CC=clang"
221+
- "--linkopt=-fuse-ld=lld"
222+
build_targets:
223+
- "//..."
224+
test_targets:
225+
- "//..."
226+
build_flags: *aspects_flags
194227
ubuntu2004_examples_rolling:
195228
name: "Examples with Rolling Bazel Version"
196229
platform: ubuntu2004

0 commit comments

Comments
 (0)