Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfba75d0

Browse files
committed
Decoupled ASSERT and DEBUG options.
1 parentc3b9c52 commitfba75d0

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

‎src/Makefile.global

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
X=$(shell sleep 4)
21
#----------------------------------------------------------------------------
32
#
43
# Makefile.global--
@@ -8,7 +7,7 @@ X=$(shell sleep 4)
87
#
98
#
109
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.46 1996/11/01 02:21:15 momjian Exp $
10+
# $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.47 1996/11/01 02:32:16 momjian Exp $
1211
#
1312
# NOTES
1413
# This is seen by any Makefiles that include mk/postgres.mk. To
@@ -144,18 +143,19 @@ OIDNAMELEN = 36
144143

145144
#HAVE_Cplusplus= true
146145

147-
#Comment outCDEBUG toturn off debugging and sanity-checking.
146+
#SetCDEBUG to-O for optimization, or -g for debuggable binaries
148147
#
149-
#XXX on MIPS, use -g3 if you want to compile with -O
150148
CDEBUG= -O
151149

150+
# Commenting out CASSERT will make things go a LOT faster, but you will
151+
# also lose a lot of useful error-checking.
152+
CASSERT= true
153+
152154
# Comment out ENFORCE_ALIGNMENT if you do NOT want unaligned access to
153155
# multi-byte types to generate a bus error.
154156
ENFORCE_ALIGNMENT= true
155157

156-
#
157-
#XXX define on MIPS if you want to be able to use pixie.
158-
# note that this disables dynamic loading!
158+
# Comment out PROFILE to generate a profile version of the binaries
159159
#PROFILE= -p -non_shared
160160

161161
# About the use of readline in psql:
@@ -869,16 +869,15 @@ else
869869
CFLAGS_OPT= -O
870870
endif
871871
CFLAGS+= $(CFLAGS_OPT)
872-
#
873-
# Uncommenting this will make things go a LOT faster, but you will
874-
# also lose a lot of useful error-checking.
875-
#
872+
endif
873+
874+
ifndef CASSERT
876875
CFLAGS+= -DNO_ASSERT_CHECKING
877876
endif
878877

879878
ifdef PROFILE
880-
CFLAGS+= $(PROFILE)
881-
LDFLAGS+= $(PROFILE)
879+
CFLAGS+= $(PROFILE)
880+
LDFLAGS+= $(PROFILE)
882881
endif
883882

884883
# Globally pass PORTNAME

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp