Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
HAWQ-1787. Refactor notice in pre-built toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
chiyang10000 committed Mar 8, 2021
1 parent 89ed32f commit c5d2edb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest]
platform: [ubuntu-18.04, macos-latest]

runs-on: ${{ matrix.platform }}

Expand Down Expand Up @@ -52,10 +52,8 @@ jobs:
timeout-minutes: 10
run: |
source .github/workflows/scripts/toolchain.sh
export CFLAGS="$CFLAGS -w"
export LDFLAGS="$LDFLAGS -Wl,-rpath,$HAWQ_TOOLCHAIN_PATH/dependency/package/lib"
./configure --enable-debug --prefix=/tmp/hawq || cat config.log
./configure --prefix=/tmp/hawq || cat config.log
test -f config.status
- name: build hawq
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/download/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
./*
*
16 changes: 15 additions & 1 deletion .github/workflows/scripts/toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ export HAWQ_TOOLCHAIN_PATH=$(cd "$( dirname "${BASH_SOURCE[0]-$0}" )" && pwd)/do
# https://github.com/apache/hawq/releases/tag/thirdparty
REPO=https://github.com/apache/hawq/releases/download/thirdparty/

# ISA and OS checking
arch=$(uname -m)
case $arch in
x86_64) ;;
*) echo "Not supported on ISA $arch"; return 1; ;;
esac
os=$(uname -s)
case $os in
Darwin) ;;
Linux) ;;
*) echo "Not supported on OS $os"; return 1; ;;
esac


###
Expand All @@ -32,13 +44,15 @@ if [[ $(uname -s) == Darwin ]]; then

for file in $(find $HAWQ_TOOLCHAIN_PATH/dependency/package/bin -name '*' -type f) $(find $HAWQ_TOOLCHAIN_PATH/dependency/package/lib -name '*.dylib' -type f); do
if [[ $(file $file | grep Mach-O) ]]; then
install_name_tool -add_rpath $HAWQ_TOOLCHAIN_PATH/dependency/package/lib $file || true
install_name_tool -add_rpath $HAWQ_TOOLCHAIN_PATH/dependency/package/lib $file 2>/dev/null || true
fi
done
install_name_tool -add_rpath $HAWQ_TOOLCHAIN_PATH/dependency/package/lib/perl5/5.28.0/darwin-thread-multi-2level/CORE/ $HAWQ_TOOLCHAIN_PATH/dependency/package/bin/perl
fi

export MAKEFLAGS=-j$(sysctl -n hw.ncpu)
export CFLAGS="$CFLAGS -w"
export LDFLAGS="$LDFLAGS -Wl,-rpath,$HAWQ_TOOLCHAIN_PATH/dependency/package/lib"
fi


Expand Down

0 comments on commit c5d2edb

Please sign in to comment.