Skip to content

Commit 386aef8

Browse files
committed
Pass --no-layout-tests to rustc
Layout tests are skipped anyway. Not generating them in the first place makes rust-analyzer significantly faster to run. Previously `rust-analyzer analysis-stats rust-project.json` would run in ~40s and now it only needs ~15s. Signed-off-by: Björn Roy Baron <bjorn3_gh@protonmail.com>
1 parent d6657ee commit 386aef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ bindgen_c_flags_final = $(bindgen_c_flags_lto)
297297
quiet_cmd_bindgen = BINDGEN $@
298298
cmd_bindgen = \
299299
$(BINDGEN) $< $(bindgen_target_flags) \
300-
--use-core --with-derive-default --ctypes-prefix core::ffi \
300+
--use-core --with-derive-default --ctypes-prefix core::ffi --no-layout-tests \
301301
--no-debug '.*' \
302302
--size_t-is-usize -o $@ -- $(bindgen_c_flags_final) -DMODULE \
303303
$(bindgen_target_cflags) $(bindgen_target_extra)

0 commit comments

Comments
 (0)