  . $topsrcdir/mozconfig-linux-x86_64

  # We want to build with clang now and point to the GCC toolchain until #29041 is
  # fixed. We explicitly need to define the host compiler as well as for some
  # reason the gcc-toolchain argument does not get passed along otherwise.
  CC="clang --gcc-toolchain=/var/tmp/dist/gcc"
  CXX="clang++ --gcc-toolchain=/var/tmp/dist/gcc"
  HOST_CC=$CC
  HOST_CXX=$CXX

  export BINDGEN_CFLAGS='--gcc-toolchain=/var/tmp/dist/gcc'

  # set LDFLAGS for Full RELRO
  export LDFLAGS="-Wl,-z,relro -Wl,-z,now"

  


ac_add_options --enable-updater
  ac_add_options --enable-base-browser-update
  ac_add_options --with-updater-url=https://aus1.torproject.org/torbrowser/update_3/


# Necessary for package-tests step which expects dist/bin/jsapi-tests to exist.
# This is added regardless of --enable-tests, because it's also a useful debugging tool.
ac_add_options --enable-js-shell

mk_add_options MOZ_PARALLEL_BUILD=4

export MOZ_APP_REMOTINGNAME="Tor Browser Alpha"

export MAR_CHANNEL_ID="torbrowser-torproject-alpha"
export ACCEPTED_MAR_CHANNEL_IDS="torbrowser-torproject-alpha"

export MOZ_INCLUDE_SOURCE_INFO=1
export MOZ_SOURCE_REPO="https://gitlab.torproject.org/tpo/applications/tor-browser"
export MOZ_SOURCE_CHANGESET=a23d955cd9a8292aeba406655c66307508d9fa6a
