Bug 1852754: part 9) Add tests for dynamically loading <link rel="prefetch"> elements...
[gecko.git] / build / mozconfig.clang-cl
blob4ea7a59a09ea7465d98cf5f877817b23c0da9e35
1 if test -d "$MOZ_FETCHES_DIR/clang/bin"; then
2     CLANG_DIR=`cd "$MOZ_FETCHES_DIR/clang/bin" ; pwd`
3     export PATH="${CLANG_DIR}:${PATH}"
4 fi
6 export CC=clang-cl
7 export CXX=clang-cl
8 export ENABLE_CLANG_PLUGIN=1
10 if [ -n "$UPLOAD_PATH" ]; then
11     case "$(uname -s)" in
12     MINGW*|MSYS*)
13         DIAGNOSTICS_DIR="$(cmd.exe //e:on //c if not exist ${UPLOAD_PATH} mkdir ${UPLOAD_PATH} && cd ${UPLOAD_PATH} && pwd)"
14         ;;
15     *)
16         DIAGNOSTICS_DIR="${UPLOAD_PATH}"
17         ;;
18     esac
19     export CFLAGS="$CFLAGS -fcrash-diagnostics-dir=${DIAGNOSTICS_DIR}"
20     export CXXFLAGS="$CXXFLAGS -fcrash-diagnostics-dir=${DIAGNOSTICS_DIR}"