File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,17 @@ function pgbuild() {
18
18
local destname=" ${1:- " $( basename $( pwd) ) " } "
19
19
local variant=" ${2:- } "
20
20
local configure_args
21
+ local CC=/usr/lib64/ccache/gcc
21
22
case " ${variant:- } " in
22
23
" " )
23
24
configure_args=" --enable-debug --enable-cassert --enable-tap-tests --enable-dtrace"
24
25
;;
25
26
" NDEBUG" )
26
27
configure_args=" "
27
28
;;
29
+ " CLANG" )
30
+ configure_args=" --enable-debug --enable-cassert --enable-tap-tests --enable-dtrace CC=/usr/lib64/ccache/clang"
31
+ ;;
28
32
* )
29
33
echo " unrecognised build variant $variant "
30
34
return
@@ -89,6 +93,9 @@ function pgbuildall() {
89
93
echo " building NDEBUG variant"
90
94
pgbuild " $( basename $( pwd) ) " " NDEBUG"
91
95
echo " NDEBUG variant built"
96
+ echo " building NDEBUG variant"
97
+ pgbuild " $( basename $( pwd) ) " " CLANG"
98
+ echo " CLANG variant built"
92
99
ls -d build*
93
100
}
94
101
@@ -214,7 +221,7 @@ function regress_psql() {
214
221
# automatically.
215
222
function gdblast() {
216
223
c=$( cd ~ /core/ && ls -c * .core | tail -1 ) ;
217
- p=$( echo $c | awk -F . ' { gsub("!","/",$2); print $2;}' ) ;
224
+ p=$( echo " $c " | awk -F - ' { gsub("!","/",$2); print $2;}' ) ;
218
225
gdb -q $p ~ /core/" $c " -ex ' info inferiors' -ex ' info sharedlibrary \(pglogical\|bdr\)' ;
219
226
}
220
227
You can’t perform that action at this time.
0 commit comments