Skip to content

Commit

Permalink
[build] Update hack that broke when running benchmarks/ovm-build
Browse files Browse the repository at this point in the history
I moved from ~/git/oilshell/oil -> ~/git/oils-for-unix/oils
  • Loading branch information
Andy C committed Jan 6, 2025
1 parent a0b296d commit 871e087
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmarks/ovm-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
7 changes: 6 additions & 1 deletion build/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=''
Expand Down

0 comments on commit 871e087

Please sign in to comment.