Bug 1776680 [wpt PR 34603] - [@container] Test invalidation of font-relative units...
[gecko.git] / build / mozconfig.clang-cl
blobdfa301e37f3bd86cebf870cb3a66b5de3c781cff
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}"
5     if $(cd $MOZ_FETCHES_DIR/clang/lib/clang/* && test -d lib/windows); then
6         export LIB="$(cd $MOZ_FETCHES_DIR/clang/lib/clang/* && cd lib/windows && pwd)"
7     fi
8 fi
10 export CC=clang-cl
11 export CXX=clang-cl
12 export ENABLE_CLANG_PLUGIN=1
14 if [ -n "$UPLOAD_PATH" ]; then
15     case "$(uname -s)" in
16     MINGW*|MSYS*)
17         DIAGNOSTICS_DIR="$(cmd.exe //e:on //c if not exist ${UPLOAD_PATH} mkdir ${UPLOAD_PATH} && cd ${UPLOAD_PATH} && pwd)"
18         ;;
19     *)
20         DIAGNOSTICS_DIR="${UPLOAD_PATH}"
21         ;;
22     esac
23     export CFLAGS="$CFLAGS -fcrash-diagnostics-dir=${DIAGNOSTICS_DIR}"
24     export CXXFLAGS="$CXXFLAGS -fcrash-diagnostics-dir=${DIAGNOSTICS_DIR}"