tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

mozconfig.common (1514B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 
      5 # Configuration shared between browser and shell builds.
      6 
      7 # The configuration options are chosen to compile the most code
      8 # (--enable-debug, --enable-tests) in the trickiest way possible
      9 # (--enable-optimize) to maximize the chance of seeing tricky static orderings.
     10 ac_add_options --enable-debug
     11 ac_add_options --enable-tests
     12 ac_add_options --enable-optimize
     13 
     14 # Wrap all compiler invocations in order to enable the plugin and send
     15 # information to a common database.
     16 if [ -z "$AUTOMATION" ]; then
     17     # Developer build: `mach hazards bootstrap` puts tools here:
     18     TOOLS_DIR="$MOZBUILD_STATE_PATH/hazard-tools"
     19 else
     20     # Automation build: tools are downloaded from upstream tasks.
     21     TOOLS_DIR="$MOZ_FETCHES_DIR"
     22 fi
     23 ac_add_options --with-compiler-wrapper="${TOOLS_DIR}"/sixgill/usr/libexec/sixgill/scripts/wrap_gcc/basecc
     24 
     25 # Stuff that gets in the way.
     26 ac_add_options --without-ccache
     27 ac_add_options --disable-replace-malloc
     28 
     29 # -Wattributes is very verbose due to attributes being ignored on template
     30 # instantiations.
     31 #
     32 # -Wignored-attributes is very verbose due to attributes being
     33 # ignored on template parameters.
     34 ANALYSIS_EXTRA_CFLAGS="-Wno-attributes -Wno-ignored-attributes"
     35 CFLAGS="$CFLAGS $ANALYSIS_EXTRA_CFLAGS"
     36 CPPFLAGS="$CPPFLAGS $ANALYSIS_EXTRA_CFLAGS"
     37 CXXFLAGS="$CXXFLAGS $ANALYSIS_EXTRA_CFLAGS"