summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRong Tao <rtoax@foxmail.com>2023-03-18 00:23:06 +0800
committerGitHub <noreply@github.com>2023-03-17 18:23:06 +0200
commitd69109834999c9f06fb31ea4472e0eb3b99d8dc8 (patch)
treef289480471d3f6a85eb8c65dcfd6e7d5e7937fbc
parent2dd5c3a180a9892c339b66f76cc203f8b0f6fe5a (diff)
downloadredis-d69109834999c9f06fb31ea4472e0eb3b99d8dc8.tar.gz
Fix compile lto-wrapper warning for aarch64 (#11926)
Use -flto=auto to use GNU make's job server, if available, or otherwise fall back to autodetection of the number of CPU threads present in your system. Warnings: lto-wrapper: warning: using serial compilation of 2 LTRANS jobs lto-wrapper: note: see the ‘-flto’ option documentation for more information lto-wrapper: warning: using serial compilation of 4 LTRANS jobs lto-wrapper: note: see the ‘-flto’ option documentation for more information lto-wrapper: warning: using serial compilation of 31 LTRANS jobs lto-wrapper: note: see the ‘-flto’ option documentation for more information Signed-off-by: Rong Tao <rongtao@cestc.cn>
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 13e142442..b0727db2c 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -17,7 +17,7 @@ uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not')
OPTIMIZATION?=-O3
ifeq ($(OPTIMIZATION),-O3)
- REDIS_CFLAGS+=-flto
+ REDIS_CFLAGS+=-flto=auto
REDIS_LDFLAGS+=-flto
endif
DEPENDENCY_TARGETS=hiredis linenoise lua hdr_histogram fpconv