File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ include $(top_builddir)/src/Makefile.global
20
20
include $(top_srcdir ) /contrib/contrib-global.mk
21
21
endif
22
22
23
+ ifdef USE_ASSERT_CHECKING
24
+ override CFLAGS += -DUSE_ASSERT_CHECKING
25
+ endif
26
+
23
27
installcheck : data/1.jpg.hex data/2.png.hex data/3.gif.hex data/4.jpg.hex data/5.png.hex data/6.gif.hex data/7.jpg.hex data/8.png.hex data/9.gif.hex data/10.jpg.hex data/11.png.hex data/12.gif.hex
24
28
25
29
data/% .hex : data/%
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ if [ $CHECK_CODE = "true" ]; then
36
36
if [ " $CC " = " clang" ]; then
37
37
sudo apt-get -y install -qq clang-$LLVM_VER
38
38
39
- scan-build-$LLVM_VER --status-bugs make USE_PGXS=1 PG_CONFIG=$config_path || status=$?
39
+ scan-build-$LLVM_VER --status-bugs \
40
+ make USE_PGXS=1 USE_ASSERT_CHECKING=1 PG_CONFIG=$config_path || status=$?
40
41
exit $status
41
42
42
43
elif [ " $CC " = " gcc" ]; then
@@ -71,7 +72,7 @@ ulimit -c unlimited -S
71
72
echo ' /tmp/%e-%s-%p.core' | sudo tee /proc/sys/kernel/core_pattern
72
73
73
74
# build imgsmlr (using CFLAGS_SL for gcov)
74
- make USE_PGXS=1 PG_CONFIG=$config_path CFLAGS_SL=" $( $config_path --cflags_sl) -coverage"
75
+ make USE_PGXS=1 USE_ASSERT_CHECKING=1 PG_CONFIG=$config_path CFLAGS_SL=" $( $config_path --cflags_sl) -coverage"
75
76
sudo make install USE_PGXS=1 PG_CONFIG=$config_path
76
77
77
78
# check build
You can’t perform that action at this time.
0 commit comments