File tree 4 files changed +15
-9
lines changed
4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 59
59
- name : Print ccache stats
60
60
run : ccache -s
61
61
- name : Checking completeness of help output
62
- run : scripts/check_help.sh
62
+ run : scripts/check_help.sh g++
63
63
- name : Run unit tests
64
64
run : |
65
65
make -C unit test IPASIR=$PWD/riss.git/riss
@@ -247,7 +247,7 @@ jobs:
247
247
- name : Print ccache stats
248
248
run : ccache -s
249
249
- name : Checking completeness of help output
250
- run : scripts/check_help.sh build/bin
250
+ run : scripts/check_help.sh /usr/bin/g++ build/bin
251
251
- name : Check if package building works
252
252
run : |
253
253
cd build
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
+ CXX=$1
6
+ shift
7
+
5
8
# make sure we execute the remainder in the directory containing this script
6
9
cd ` dirname $0 `
7
10
8
11
echo " Compiling the helper file to extract the raw list of parameters from cbmc"
9
- g++ -E -dM -std=c++17 -I../../src ../../src/cbmc/cbmc_parse_options.cpp -o macros.c
12
+ $CXX -E -dM -std=c++17 -I../../src ../../src/cbmc/cbmc_parse_options.cpp -o macros.c
10
13
echo CBMC_OPTIONS >> macros.c
11
14
12
15
echo " Converting the raw parameter list to the format required by autocomplete scripts"
13
- rawstring=" ` gcc -E -P -w macros.c` \" ?h(help)\" "
16
+ rawstring=" ` $CXX -E -P -w macros.c` \" ?h(help)\" "
14
17
rm macros.c
15
18
16
19
# now the main bit, convert from raw format to a proper list of switches
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
+ CXX=$1
6
+ shift
7
+
5
8
# if a command-line argument is provided, use it as a path to built binaries
6
9
# (CMake-style build); otherwise assume we use Makefile-based in-tree build
7
10
if [ $# -eq 1 ] ; then
@@ -33,10 +36,10 @@ for t in \
33
36
tool_name=$( basename $t )
34
37
opt_name=$( echo $tool_name | tr ' a-z-' ' A-Z_' )
35
38
echo " Extracting the raw list of parameters from $tool_name "
36
- g++ -E -dM -std=c++17 -I../src -I../jbmc/src $t /* _parse_options.cpp -o macros.c
39
+ $CXX -E -dM -std=c++17 -I../src -I../jbmc/src $t /* _parse_options.cpp -o macros.c
37
40
# goto-analyzer partly uses the spelling "analyser" within the code base
38
41
echo ${opt_name} _OPTIONS | sed ' s/GOTO_ANALYZER/GOTO_ANALYSER/' >> macros.c
39
- rawstring=" ` gcc -E -P -w macros.c` \" ?h(help)\" "
42
+ rawstring=" ` $CXX -E -P -w macros.c` \" ?h(help)\" "
40
43
rm macros.c
41
44
42
45
# now the main bit, convert from raw format to a proper list of switches
@@ -58,8 +61,8 @@ for t in \
58
61
fi
59
62
60
63
if [ ! -x $tool_bin ] ; then
61
- echo " $tool_bin is not an executable"
62
- exit 1
64
+ echo " $tool_bin is not an executable, cannot check help completeness "
65
+ continue
63
66
fi
64
67
$tool_bin --help > help_string
65
68
grep ' ^\\fB\\-' ../doc/man/$tool_name .1 > man_page_opts
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ endif()
59
59
# bash completion
60
60
if (NOT WIN32 )
61
61
add_custom_command (OUTPUT "${CBMC_ROOT_DIR} /scripts/bash-autocomplete/cbmc.sh"
62
- COMMAND "${CBMC_ROOT_DIR} /scripts/bash-autocomplete/extract_switches.sh"
62
+ COMMAND "${CBMC_ROOT_DIR} /scripts/bash-autocomplete/extract_switches.sh" " ${CMAKE_CXX_COMPILER} "
63
63
DEPENDS $<TARGET_FILE:cbmc>
64
64
)
65
65
add_custom_target (cbmc.sh ALL
You can’t perform that action at this time.
0 commit comments