Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tests/patch/build_clang/build_clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Copyright (C) 2019 Netronome Systems, Inc.

cc=clang
cc="ccache clang"
output_dir=build_clang/
ncpu=$(grep -c processor /proc/cpuinfo)
build_flags="-Oline -j $ncpu W=1"
Expand All @@ -19,7 +19,7 @@ prep_config() {
}

echo "Using $build_flags redirect to $tmpfile_o and $tmpfile_n"
echo "LLVM=1 cc=$cc"
echo "LLVM=1 cc=\"$cc\""
$cc --version | head -n1

HEAD=$(git rev-parse HEAD)
Expand All @@ -35,7 +35,7 @@ else
echo "Baseline building the tree"

prep_config
make LLVM=1 O=$output_dir $build_flags
make LLVM=1 O=$output_dir CC="$cc" $build_flags
fi

# Check if new files were added, new files will cause mod re-linking
Expand All @@ -58,7 +58,7 @@ git checkout -q HEAD~
echo "Building the tree before the patch"

prep_config
make LLVM=1 O=$output_dir $build_flags 2> >(tee $tmpfile_o >&2)
make LLVM=1 O=$output_dir CC="$cc" $build_flags 2> >(tee $tmpfile_o >&2)
incumbent=$(grep -i -c "\(warn\|error\)" $tmpfile_o)

echo "Building the tree with the patch"
Expand All @@ -69,7 +69,7 @@ git checkout -q $HEAD
touch $touch_relink

prep_config
make LLVM=1 O=$output_dir $build_flags 2> >(tee $tmpfile_n >&2) || rc=1
make LLVM=1 O=$output_dir CC="$cc" $build_flags 2> >(tee $tmpfile_n >&2) || rc=1

current=$(grep -i -c "\(warn\|error\)" $tmpfile_n)

Expand Down