mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
Add -O3 to all C/C++ compiles.
So far, we are compiling C/C++ code without any optimization. In non-representative, but practically relevant tests, the -O3 improved the total query time for a demanding graph by ~20%. Change-Id: I5e8123650e53a4933ed4fbe63d0b1ca67217b865
This commit is contained in:
parent
18d9d00100
commit
1f90abdc1f
|
@ -58,9 +58,9 @@ export LOCAL_BINARIES=$(PREFIX)/bin
|
|||
export PATH := $(LOCAL_BINARIES):$(GOPATH)/bin:$(PATH)
|
||||
export LD_LIBRARY_PATH := $(PREFIX)/lib:$(LD_LIBRARY_PATH)
|
||||
|
||||
export CFLAGS := $(CFLAGS) -I$(PREFIX)/include
|
||||
export CXXFLAGS := $(CXXFLAGS) -I$(PREFIX)/include
|
||||
export CPPFLAGS := $(CPPFLAGS) -I$(PREFIX)/include
|
||||
export CFLAGS := $(CFLAGS) -I$(PREFIX)/include -O3
|
||||
export CXXFLAGS := $(CXXFLAGS) -I$(PREFIX)/include -O3
|
||||
export CPPFLAGS := $(CPPFLAGS) -I$(PREFIX)/include -O3
|
||||
export LDFLAGS := $(LDFLAGS) -L$(PREFIX)/lib
|
||||
export PKG_CONFIG_PATH := $(PREFIX)/lib/pkgconfig:$(PKG_CONFIG_PATH)
|
||||
|
||||
|
|
Loading…
Reference in a new issue