browser/config/mozconfigs/linux64/hazards

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 # This mozconfig is used when compiling the browser for the SM(Hf) rooting
michael@0 2 # hazard analysis build, see
michael@0 3 # https://wiki.mozilla.org/Javascript:SpiderMonkey:ExactStackRooting
michael@0 4
michael@0 5 # Do NOT include build/unix/mozconfig.linux because it points directly at the
michael@0 6 # tooltool-installed gcc, and the analysis works by wrapping the gcc invocation
michael@0 7 # with a script that invokes the real gcc with -fplugin and its configuration
michael@0 8 # directives. Instead, duplicate the contents of that mozconfig here:
michael@0 9
michael@0 10 . "$topsrcdir/build/mozconfig.common"
michael@0 11 ac_add_options --enable-elf-hack
michael@0 12 ac_add_options --enable-stdcxx-compat
michael@0 13
michael@0 14 # The objdir must be at a known location so its path can be stripped from the
michael@0 15 # filenames stored by the analysis
michael@0 16 mk_add_options MOZ_OBJDIR=obj-analyzed
michael@0 17
michael@0 18 # The configuration options are chosen to compile the most code
michael@0 19 # (--enable-debug, --enable-tests) in the trickiest way possible
michael@0 20 # (--enable-optimize) to maximize the chance of seeing tricky static orderings.
michael@0 21 ac_add_options --enable-debug
michael@0 22 ac_add_options --enable-tests
michael@0 23 ac_add_options --enable-optimize
michael@0 24
michael@0 25 CFLAGS="$CFLAGS -Wno-attributes"
michael@0 26 CPPFLAGS="$CPPFLAGS -Wno-attributes"
michael@0 27 CXXFLAGS="$CXXFLAGS -Wno-attributes"
michael@0 28
michael@0 29 . "$topsrcdir/build/mozconfig.common.override"

mercurial