mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 21:46:27 +02:00
pkg(pony-0.39.0): Use git submodule
to install llvm and get the source through cloning.
This commit is contained in:
parent
1a4750ea31
commit
1035940bef
2 changed files with 8 additions and 22 deletions
27
packages/ponylang/0.39.0/build.sh
vendored
27
packages/ponylang/0.39.0/build.sh
vendored
|
@ -2,27 +2,14 @@
|
||||||
|
|
||||||
PREFIX=$(realpath $(dirname $0))
|
PREFIX=$(realpath $(dirname $0))
|
||||||
|
|
||||||
# Installing LLVM
|
# get sources - only get the latest copy of the relevant files
|
||||||
mkdir -p llvm
|
git clone --depth 1 https://github.com/ponylang/ponyc.git
|
||||||
cd llvm
|
|
||||||
curl -OL "http://llvm.org/releases/3.4/llvm-3.4.src.tar.gz"
|
|
||||||
tar xfz llvm-3.4.src.tar.gz
|
|
||||||
rm llvm-3.4.src.tar.gz
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# get sources
|
# updates all submodules recursively along their tracking branches
|
||||||
curl -OL "https://github.com/ponylang/ponyc/archive/refs/tags/0.39.0.tar.gz"
|
# i.e. https://github.com/ponylang/ponyc/blob/main/.gitmodules
|
||||||
tar xfz 0.39.0.tar.gz
|
git submodule update --recursive --init
|
||||||
rm 0.39.0.tar.gz
|
|
||||||
|
|
||||||
# cd into pony dir that was created from tar extraction.
|
# build
|
||||||
cd ponyc-0.39.0
|
make -j$(nproc)
|
||||||
|
|
||||||
# Build the vendored LLVM libraries that are included in the `lib/llvm/src`.
|
|
||||||
make libs build_flags="-j$(nproc)"
|
|
||||||
# Configure the CMake build directory.
|
|
||||||
make configure
|
|
||||||
# Will build pony and put it in `build/release`.
|
|
||||||
make build
|
|
||||||
# Install pony into `$PREFIX`.
|
# Install pony into `$PREFIX`.
|
||||||
make prefix="$PREFIX" install
|
make prefix="$PREFIX" install
|
||||||
|
|
1
packages/ponylang/0.39.0/environment
vendored
1
packages/ponylang/0.39.0/environment
vendored
|
@ -2,4 +2,3 @@
|
||||||
|
|
||||||
# Put 'export' statements here for environment variables
|
# Put 'export' statements here for environment variables
|
||||||
export PATH=$PWD/bin:$PATH
|
export PATH=$PWD/bin:$PATH
|
||||||
export LLVM_DIR=$PWD/llvm
|
|
Loading…
Add table
Add a link
Reference in a new issue