browser/config/mozconfigs/linux64/hazards

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/config/mozconfigs/linux64/hazards	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +# This mozconfig is used when compiling the browser for the SM(Hf) rooting
     1.5 +# hazard analysis build, see
     1.6 +# https://wiki.mozilla.org/Javascript:SpiderMonkey:ExactStackRooting
     1.7 +
     1.8 +# Do NOT include build/unix/mozconfig.linux because it points directly at the
     1.9 +# tooltool-installed gcc, and the analysis works by wrapping the gcc invocation
    1.10 +# with a script that invokes the real gcc with -fplugin and its configuration
    1.11 +# directives. Instead, duplicate the contents of that mozconfig here:
    1.12 +
    1.13 +. "$topsrcdir/build/mozconfig.common"
    1.14 +ac_add_options --enable-elf-hack
    1.15 +ac_add_options --enable-stdcxx-compat
    1.16 +
    1.17 +# The objdir must be at a known location so its path can be stripped from the
    1.18 +# filenames stored by the analysis
    1.19 +mk_add_options MOZ_OBJDIR=obj-analyzed
    1.20 +
    1.21 +# The configuration options are chosen to compile the most code
    1.22 +# (--enable-debug, --enable-tests) in the trickiest way possible
    1.23 +# (--enable-optimize) to maximize the chance of seeing tricky static orderings.
    1.24 +ac_add_options --enable-debug
    1.25 +ac_add_options --enable-tests
    1.26 +ac_add_options --enable-optimize
    1.27 +
    1.28 +CFLAGS="$CFLAGS -Wno-attributes"
    1.29 +CPPFLAGS="$CPPFLAGS -Wno-attributes"
    1.30 +CXXFLAGS="$CXXFLAGS -Wno-attributes"
    1.31 +
    1.32 +. "$topsrcdir/build/mozconfig.common.override"

mercurial