Skip to content

Commit

Permalink
fish: cbl_setup_reduction: Adjustments
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Dec 26, 2023
1 parent 428f542 commit 0fcec99
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions fish/functions/cbl_setup_reduction.fish
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,24 @@ if not string match -qr \'\.o$\' $o_target
end
set o_cmd_file $lnx_bld/good/(dirname $o_target)/.(basename $o_target).cmd
#####################################
# BEWARE MODIFICATIONS TO THIS AREA #
#####################################
function build_kernel
set type $argv[1]
set clang_var "$type"_clang
kmake \
-C $lnx_src \
LLVM=(dirname $$clang_var)/ \
CC=$$clang_var \
LLVM=1 \
O=$lnx_bld/$type \
mrproper $make_args
end
build_kernel good; or return
build_kernel good
or return
if not test -f $o_cmd_file
print_error "$o_cmd_file does not exist?"
return 1
Expand Down Expand Up @@ -143,17 +149,19 @@ exit $script_ret
# PART TWO #
############
set clang_flags (cat flags)
set clang_flags \
(cat flags)
set common_flags \
-Werror \
-Wfatal-errors \
-c \
-o /dev/null \
$cvise_dir/...
$cvise_dir/*.i
set gcc_flags
$good_clang $clang_flags $common_flags; or return
$bad_clang $clang_flags $common_flags &| ...
test "$pipestatus" = "..."' >$cvise_test
$bad_clang $clang_flags $common_flags &| grep -F ''
test "$pipestatus" = "1 0"' >$cvise_test
chmod +x $cvise_test

git -C $cvise init; or return
Expand Down

0 comments on commit 0fcec99

Please sign in to comment.