Compile with ICC

Here's some helpful suggestions for compiling the Midbrowser with the Intel® C++ Compiler.

To build with ICC you need to do the following:

1) You need to define the following variables:

export CC=icc

export CXX=icpc

export LD=xild

export AR=xiar

2) You need to modify the configure file to comment out the following line (total of 3 occurrences):


3) You need to remove "NS_FASTCALL" from the files nsRuleNode.h and nsStyleContext.h in layout/style directory. This works around a runtime bug in ICC.

4) Add the following options to your mozconfig:

ac_add_options -enable-system-cairo

ac_add_options -enable-cpp-rtti

You should be able to build with ICC with the above steps.

For more complete information about compiler optimizations, see our Optimization Notice.


anonymous's picture

thank you.

anonymous's picture

Correr mas rapido

Add a Comment

Have a technical question? Visit our forums. Have site or software product issues? Contact support.