Bug 1539764 - Add a targetFront attribute to the Front class to retrieve the target...
[gecko.git] / build / mozconfig.clang-cl
blobefaec52e1d9509762552b58ac20a382126199fa1
1 if test -d "$topsrcdir/clang/bin"; then
2     CLANG_DIR=`cd "$topsrcdir/clang/bin" ; pwd`
3     export PATH="${CLANG_DIR}:${PATH}"
5     if $(cd $topsrcdir/clang/lib/clang/* && test -d lib/windows); then
6         CLANG_LIB_DIR="$(cd $topsrcdir/clang/lib/clang/* && cd lib/windows && pwd)"
7         export LIB=$LIB:$CLANG_LIB_DIR
8     fi
9 fi
11 export CC=clang-cl
12 export CXX=clang-cl
13 export ENABLE_CLANG_PLUGIN=1
15 if [ -n "$UPLOAD_PATH" ]; then
16     DIAGNOSTICS_DIR="$(cmd.exe //e:on //c if not exist ${UPLOAD_PATH} mkdir ${UPLOAD_PATH} && cd ${UPLOAD_PATH} && pwd)"
17     export CFLAGS="$CFLAGS -fcrash-diagnostics-dir=${DIAGNOSTICS_DIR}"
18     export CXXFLAGS="$CXXFLAGS -fcrash-diagnostics-dir=${DIAGNOSTICS_DIR}"