fixed optimization
authorAnas Nashif <anas.nashif@intel.com>
Tue, 6 Nov 2012 19:46:28 +0000 (11:46 -0800)
committerJohn L. Whiteman <john.l.whiteman@intel.com>
Mon, 13 Oct 2014 18:15:47 +0000 (11:15 -0700)
Change-Id: I61f79170782254b7baafd143a6cd133f1d6cfea8

coreconf/Linux.mk

index 177a3c8..c7d39fd 100644 (file)
@@ -111,11 +111,7 @@ ifeq ($(OS_RELEASE),2.0)
 endif
 
 ifdef BUILD_OPT
-ifeq (11,$(ALLOW_OPT_CODE_SIZE)$(OPT_CODE_SIZE))
-       OPTIMIZER = -Os
-else
-       OPTIMIZER = -O2
-endif
+       OPTIMIZER = $(OPT_FLAGS)
 ifdef MOZ_DEBUG_SYMBOLS
        ifdef MOZ_DEBUG_FLAGS
                OPTIMIZER += $(MOZ_DEBUG_FLAGS)