Skip to content

Commit f9d2ec0

Browse files
committed
Have CASSERT enabled/disabled via configure, and passed through config.h
instead of as a -D
1 parent 5dcc9be commit f9d2ec0

File tree

4 files changed

+252
-188
lines changed

4 files changed

+252
-188
lines changed

src/Makefile.global.in

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.20 1997/04/12 10:32:03 scrappy Exp $
10+
# $Header: /cvsroot/pgsql/src/Makefile.global.in,v 1.21 1997/04/15 18:35:41 scrappy Exp $
1111
#
1212
# NOTES
1313
# Essentially all Postgres make files include this file and use the
@@ -137,7 +137,7 @@ OIDNAMELEN= 36
137137

138138
# Commenting out CASSERT will make things go a LOT faster, but you will
139139
# also loose a lot of useful error-checking.
140-
CASSERT= true
140+
CASSERT= @CASSERT@
141141

142142
# Comment out ENFORCE_ALIGNMENT if you do NOT want unaligned access to
143143
# multi-byte types to generate a bus error.
@@ -304,10 +304,6 @@ ifdef COPT
304304
CFLAGS+= $(COPT)
305305
endif
306306

307-
ifndef CASSERT
308-
CFLAGS+= -DNO_ASSERT_CHECKING
309-
endif
310-
311307
ifdef PROFILE
312308
CFLAGS+= $(PROFILE)
313309
endif

0 commit comments

Comments
 (0)