diff --git a/benchmarks/ovm-build.sh b/benchmarks/ovm-build.sh index 5089f24f1..0ffc05234 100755 --- a/benchmarks/ovm-build.sh +++ b/benchmarks/ovm-build.sh @@ -233,7 +233,7 @@ build-task() { compiler='cxx' ;; (*clang) - # Note on slight mess: benchmarks/id.sh takes the provenanec of + # Note on slight mess: benchmarks/id.sh takes the provenance of # $CLANG. We translate that to 'clang' here, and # _build/oils.sh uses $CLANGXX. compiler='clang' diff --git a/build/common.sh b/build/common.sh index d54c439b7..a1c032081 100644 --- a/build/common.sh +++ b/build/common.sh @@ -21,7 +21,12 @@ LLVM_VERSION=14.0.0 readonly CLANG_DIR_RELATIVE="../oil_DEPS/clang+llvm-$LLVM_VERSION-x86_64-linux-gnu-ubuntu-18.04" CLANG_DIR_1=$REPO_ROOT/$CLANG_DIR_RELATIVE -CLANG_DIR_FALLBACK=~/git/oilshell/oil/$CLANG_DIR_RELATIVE + +# When building tarballs for devtools/release.sh, $REPO_ROOT is not next to +# ../oil_DEPS, so add this fallback. +# TODO/BUG: Shouldn't hard-code the absolute path! +CLANG_DIR_FALLBACK=~/git/oils-for-unix/oils/$CLANG_DIR_RELATIVE + if test -d $CLANG_DIR_1; then CLANG_DIR=$CLANG_DIR_1 CLANG_IS_MISSING=''