[llvm-commits] [test-suite] r117306 - /test-suite/trunk/Makefile.rules
Devang Patel
dpatel at apple.com
Mon Oct 25 13:41:19 PDT 2010
Author: dpatel
Date: Mon Oct 25 15:41:19 2010
New Revision: 117306
URL: http://llvm.org/viewvc/llvm-project?rev=117306&view=rev
Log:
Do not hardcode -O3 as the optimization level for llc and friends.
Modified:
test-suite/trunk/Makefile.rules
Modified: test-suite/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/Makefile.rules?rev=117306&r1=117305&r2=117306&view=diff
==============================================================================
--- test-suite/trunk/Makefile.rules (original)
+++ test-suite/trunk/Makefile.rules Mon Oct 25 15:41:19 2010
@@ -386,9 +386,9 @@
CFLAGS += -mieee
endif
-# Set llc / lli optimization level to -O3 to match gcc.
-LLC_OPTFLAGS := -O3
-LLI_OPTFLAGS := -O3
+# Set llc / lli optimization level
+LLC_OPTFLAGS := $(OPTFLAGS)
+LLI_OPTFLAGS := $(OPTFLAGS)
# gcc / llvm-gcc default is -fPIC -fno-omit-frame-pointer
# llc / lli default is equal to -mdynamic-no-pic -fomit-frame-pointer
@@ -446,8 +446,8 @@
# link both projlib and llvmlib libraries
LinkG := $(Link) -g -L$(PROJLIBDEBUGSOURCE) -L$(LLVMLIBDEBUGSOURCE) $(STRIP)
-LinkO := $(Link) -O3 -L$(PROJLIBRELEASESOURCE) -L$(LLVMLIBRELEASESOURCE)
-LinkP := $(Link) -O3 -L$(PROJLIBPROFILESOURCE) -L$(LLVMLIBPROFILESOURCE) $(PROFILE)
+LinkO := $(Link) $(OPTFLAGS) -L$(PROJLIBRELEASESOURCE) -L$(LLVMLIBRELEASESOURCE)
+LinkP := $(Link) $(OPTFLAGS) -L$(PROJLIBPROFILESOURCE) -L$(LLVMLIBPROFILESOURCE) $(PROFILE)
# TOOLLINKOPTSB to pass options to the linker like library search path etc
# Note that this is different from TOOLLINKOPTS, these options
More information about the llvm-commits
mailing list