Backed out 3 changesets (bug 1883476, bug 1826375) for causing windows build bustages...
[gecko.git] / browser / config / mozconfigs / win32 / mingwclang
blob00f74618f4d8abacecfc845f144d1f05a6d2ba3f
1 # Sets:
2 #    MOZ_AUTOMATION flags
3 #    SOCORRO_SYMBOL_UPLOAD_TOKEN_FILE - shouldn't be used?
4 . "$topsrcdir/build/mozconfig.win-common"
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"
18 export MOZ_PACKAGE_JSSHELL=1
20 # MinGW Stuff
21 ac_add_options --target=i686-pc-windows-gnu
22 ac_add_options --with-toolchain-prefix=i686-w64-mingw32-
24 ac_add_options --disable-warnings-as-errors
25 mk_add_options "export WIDL_TIME_OVERRIDE=0"
27 # These replicate Tor's configuration
28 ac_add_options --enable-proxy-bypass-protection
29 ac_add_options --enable-disk-remnant-avoidance
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 # WinToast does not build on mingw
36 ac_add_options --disable-notification-server # Toast notifications don't build on mingw.
38 # Find our toolchain
39 HOST_CC="$MOZ_FETCHES_DIR/clang/bin/clang"
40 HOST_CXX="$MOZ_FETCHES_DIR/clang/bin/clang++"
41 CC="$MOZ_FETCHES_DIR/clang/bin/i686-w64-mingw32-clang"
42 CXX="$MOZ_FETCHES_DIR/clang/bin/i686-w64-mingw32-clang++"
43 CXXFLAGS="-fms-extensions"
44 CFLAGS="$CFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}"
45 CXXFLAGS="$CXXFLAGS -fcrash-diagnostics-dir=${UPLOAD_PATH}"
46 CFLAGS="$CFLAGS -include _mingw.h"
47 CXXFLAGS="$CXXFLAGS -include _mingw.h"
49 # We want to make sure we use binutils and other binaries in the tooltool
50 # package.
51 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 # Do not include the visual studio related mozconfigs of course
55 ac_add_options --with-branding=browser/branding/nightly
57 . "$topsrcdir/build/mozconfig.common.override"