From e7b726da0896f344c42f905caea3fde52312ec1d Mon Sep 17 00:00:00 2001 From: Dhruba Borthakur Date: Tue, 5 Mar 2013 10:43:27 -0800 Subject: [PATCH] Downgrade optimization level from -O3 to -O2. Summary: When we use -O3, the gcc 4.7.1 compiler generates 'pinsrd' which is not supported on machines with "vendor_id : AuthenticAMD". Previous release of rocksdb used -O2. Optimization -O2 was introduced at https://github.com/facebook/rocksdb/commit/772f75b3fbc5cfcf4d519114751efeae04411fa1 Test Plan: make check Reviewers: chip, heyongqiang, sheki Reviewed By: sheki CC: leveldb Differential Revision: https://reviews.facebook.net/D9093 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fe995b927..214903cc0 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ INSTALL_PATH ?= $(CURDIR) # to switch between compilation modes. # OPT ?= -DNDEBUG # (A) Production use (optimized mode) -OPT += -O3 -fno-omit-frame-pointer -momit-leaf-frame-pointer +OPT += -O2 -fno-omit-frame-pointer -momit-leaf-frame-pointer #----------------------------------------------- # detect what platform we're building on