tor-browser

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

mingwclang (2106B)


      1 # Sets:
      2 #    MOZ_AUTOMATION flags
      3 #    SOCORRO_SYMBOL_UPLOAD_TOKEN_FILE - shouldn't be used?
      4 . "$topsrcdir/build/mozconfig.win-common"
      5 
      6 # Sets:
      7 #  build/mozconfig.common
      8 #    AUTOCLOBBER=1
      9 #    --enable-crashreporter
     10 #    --enable-release
     11 #    MOZ_ADDON_SIGNING
     12 #    MOZ_REQUIRE_SIGNING
     13 #    --enable-js-shell
     14 #  build/mozconfig.automation
     15 #    MOZ_AUTOMATION_ flags
     16 . "$topsrcdir/browser/config/mozconfigs/common"
     17 
     18 export MOZ_PACKAGE_JSSHELL=1
     19 
     20 # MinGW Stuff
     21 ac_add_options --target=i686-pc-windows-gnu
     22 ac_add_options --with-toolchain-prefix=i686-w64-mingw32-
     23 
     24 ac_add_options --disable-warnings-as-errors
     25 mk_add_options "export WIDL_TIME_OVERRIDE=0"
     26 
     27 # These replicate Tor's configuration
     28 ac_add_options --enable-proxy-bypass-protection
     29 ac_add_options --enable-disk-remnant-avoidance
     30 
     31 # These aren't supported on mingw at this time
     32 ac_add_options --disable-webrtc # Bug 1393901
     33 ac_add_options --disable-geckodriver # Bug 1489320
     34 ac_add_options --disable-update-agent # Bug 1561797
     35 ac_add_options --disable-default-browser-agent # Relies on toast notifications which don't build on mingw.
     36 ac_add_options --disable-notification-server # Toast notifications don't build on mingw.
     37 ac_add_options --disable-zucchini # Bug 1975960: SEH unavailable in mingwclang on win32
     38 
     39 # Find our toolchain
     40 HOST_CC="$MOZ_FETCHES_DIR/clang/bin/clang"
     41 HOST_CXX="$MOZ_FETCHES_DIR/clang/bin/clang++"
     42 CC="$MOZ_FETCHES_DIR/clang/bin/i686-w64-mingw32-clang"
     43 CXX="$MOZ_FETCHES_DIR/clang/bin/i686-w64-mingw32-clang++"
     44 CXXFLAGS="-fms-extensions"
     45 CFLAGS="$CFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}"
     46 CXXFLAGS="$CXXFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}"
     47 CFLAGS="$CFLAGS -include _mingw.h"
     48 CXXFLAGS="$CXXFLAGS -include _mingw.h"
     49 
     50 # We want to make sure we use binutils and other binaries in the tooltool
     51 # package.
     52 mk_add_options "export PATH=$MOZ_FETCHES_DIR/clang/bin:$MOZ_FETCHES_DIR/upx/bin:$MOZ_FETCHES_DIR/fxc2/bin:$MOZ_FETCHES_DIR/binutils/bin:$PATH"
     53 
     54 # Do not include the visual studio related mozconfigs of course
     55 
     56 ac_add_options --with-branding=browser/branding/nightly
     57 
     58 . "$topsrcdir/build/mozconfig.common.override"