Skip to content

Commit 07ebcd3

Browse files
committed
tests: build: rust: pass make flags to all invocations
Passing build_flags should not matter all that much for config targets, but let's pass them just to be safe. Here especially since debugging why CONFIG_RUST doesn't get enabled can be a bit tricky. Signed-off-by: Jakub Kicinski <[email protected]>
1 parent fa662be commit 07ebcd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/patch/build_clang_rust/build_clang_rust.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ tmpfile_n=$(mktemp)
1212
rc=0
1313

1414
prep_config() {
15-
make LLVM=1 O=$output_dir allmodconfig
15+
make LLVM=1 O=$output_dir allmodconfig $build_flags
1616

1717
# Disable -Werror so we get to see all the errors
1818
./scripts/config --file $output_dir/.config -d werror
@@ -49,7 +49,7 @@ prep_config() {
4949

5050
# Setting options above enabled some new options. Set them to their
5151
# defaults
52-
make LLVM=1 O=$output_dir olddefconfig
52+
make LLVM=1 O=$output_dir olddefconfig $build_flags
5353

5454
# And verify rust is now actually enabled in the configuration.
5555
config_rust=$(./scripts/config --file $output_dir/.config --state CONFIG_RUST)

0 commit comments

Comments
 (0)