forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1343713 - Avoid mozconfig failures when clang-cl/msvc are not pre…
…sent. r=ted The `cd $PATH && pwd` pattern doesn't work when $PATH doesn't exist, so move them in a block only executed when the directory exists. --HG-- extra : rebase_source : 53bd2959dbd9825526a386b6ab5b40a7f67a5d20
- Loading branch information
Showing
3 changed files
with
24 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
CLANG_DIR=`cd "$topsrcdir/clang/bin" ; pwd` | ||
export PATH="${CLANG_DIR}:${PATH}" | ||
if test -d "$topsrcdir/clang/bin"; then | ||
CLANG_DIR=`cd "$topsrcdir/clang/bin" ; pwd` | ||
export PATH="${CLANG_DIR}:${PATH}" | ||
|
||
mk_export_correct_style PATH | ||
mk_export_correct_style PATH | ||
fi | ||
|
||
export CC=clang-cl | ||
export CXX=clang-cl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters