aboutsummaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2016-04-27 18:29:38 +0300
committerDiana Picus <diana.picus@linaro.org>2016-04-27 18:55:08 +0300
commit5a10ae1d0ab1bd04bdab96dfc7fa22916c83ca10 (patch)
tree420cdaea83abc86b3d6ce334423b7842307c3bd1 /helpers
parent416bc4fa97ca57032c7e1ae8402510e5cc033938 (diff)
downloadlinaro-scripts-5a10ae1d0ab1bd04bdab96dfc7fa22916c83ca10.tar.gz
Bugfix: Actually create the build directory
Due to a typo, llvm-build would fail to create the build directory if it didn't exist (and subsequently failed to cd to it and started building in the wrong place). This fixes the typo, and also runs the mkdir with safe_run, so we can bail out if something goes wrong. Change-Id: I9ffe72a04e9e0643bb37298bf7668d39c2f3600e
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/llvm-build2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/llvm-build b/helpers/llvm-build
index 5b4f27d..938caa5 100755
--- a/helpers/llvm-build
+++ b/helpers/llvm-build
@@ -76,7 +76,7 @@ fi
## Make sure sure build dir is there
if [ ! -d $build_dir ]; then
- mkdir -p $builddir
+ safe_run mkdir -p $build_dir
fi
cd $build_dir