556a70d62db277decca5aeda7ca157d35b73188b braney Fri Jun 12 12:11:03 2026 -0700 common.mk: default COPT to -O3 instead of -O -g Re-apply now that the -O3 build warnings are fixed (this was reverted in a7d7f0965ef because the fixes had not landed yet). -O3 renders the bigSpeedTest1 hgTracks session about 1.5x faster than -O -g. refs #37761 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> diff --git src/inc/common.mk src/inc/common.mk index 436e3696011..1264811397b 100644 --- src/inc/common.mk +++ src/inc/common.mk @@ -3,31 +3,31 @@ # allow the somewhat more modern C syntax, e.g. 'for (int i=5; i<10, i++)' CFLAGS += -std=c99 # This is required to get the cgiLoader.mk compile target to work. for some # reason, make's %.o: %.c overrides the rule below, cause the compiles to fail # due to lack of -I flags in rule. Running with make -r to not use built-in # rules fixes, however MAKEFLAGS += -r doesn't do the trick, this does. # make is a very mysterious fellow traveler. GNUMAKEFLAGS += -r # add additional library paths L += ${LDFLAGS} # to build on sundance: CC=gcc -mcpu=v9 -m64 ifeq (${COPT},) - COPT=-O -g + COPT=-O3 endif ifeq (${MACHTYPE},) MACHTYPE:=$(shell uname -m) # $(info MACHTYPE was empty, set to: ${MACHTYPE}) endif ifneq (,$(findstring -,$(MACHTYPE))) # $(info MACHTYPE has - sign ${MACHTYPE}) MACHTYPE:=$(shell uname -m) # $(info MACHTYPE has - sign set to: ${MACHTYPE}) endif HG_DEFS=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DMACHTYPE_${MACHTYPE} HG_INC+=-I../inc -I../../inc -I../../../inc -I../../../../inc -I../../../../../inc -I$(kentSrc)/submodules/htslib # to check for Mac OSX Darwin specifics: