Bug 403224 - "Build spidermonkey with icc on macintel" [p=ted.mielczarek@gmail.com (Ted Mielczarek [luser]) r=bsmedberg a=blocking1.9+]
authorreed@reedloden.com
Tue, 18 Mar 2008 12:36:57 -0700
changeset 13249 2eafd0fb742143370c3cf042e989765529854f1f
parent 13248 4f7b412c62150a21b57b93a35a72fb779b43ab6c
child 13250 522350547e79303ed8b7fa253f903314b84daf1d
push idunknown
push userunknown
push dateunknown
reviewersbsmedberg, blocking1
bugs403224
milestone1.9b5pre
Bug 403224 - "Build spidermonkey with icc on macintel" [p=ted.mielczarek@gmail.com (Ted Mielczarek [luser]) r=bsmedberg a=blocking1.9+]
js/src/Makefile.in
--- a/js/src/Makefile.in
+++ b/js/src/Makefile.in
@@ -45,19 +45,29 @@ VPATH		= @srcdir@
 include $(DEPTH)/config/autoconf.mk
 
 MODULE		= js
 LIBRARY_NAME	= mozjs
 LIB_IS_C_ONLY	= 1
 GRE_MODULE	= 1
 
 ifdef GNU_CC
+ifdef INTEL_CC
+# icc gets special optimize flags
+ifdef MOZ_PROFILE_GENERATE
+MODULE_OPTIMIZE_FLAGS = -O0
+else
+MODULE_OPTIMIZE_FLAGS = -O2 -ip
+#XXX: do we want different INTERP_OPTIMIZER flags here?
+endif
+else
 MODULE_OPTIMIZE_FLAGS = -Os -fstrict-aliasing $(MOZ_OPTIMIZE_SIZE_TWEAK)
 # Special optimization flags for jsinterp.c
 INTERP_OPTIMIZER = -O3 -fstrict-aliasing
+endif
 else
 ifeq ($(OS_ARCH),SunOS)
 MODULE_OPTIMIZE_FLAGS = -O
 endif
 ifeq ($(OS_ARCH),WINNT)
 MODULE_OPTIMIZE_FLAGS = -O2 -GL
 endif
 endif