mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 21:46:27 +02:00
Updated to Ponylang 0.54.1
This commit is contained in:
parent
c1ed7a7118
commit
bcff5a7598
6 changed files with 50 additions and 0 deletions
27
packages/ponylang/0.54.1/build.sh
vendored
Normal file
27
packages/ponylang/0.54.1/build.sh
vendored
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
PREFIX=$(realpath $(dirname $0))
|
||||||
|
|
||||||
|
# get sources - only get the latest copy of the relevant files
|
||||||
|
git clone -q https://github.com/ponylang/ponyc.git ponyc
|
||||||
|
|
||||||
|
cd ponyc
|
||||||
|
|
||||||
|
# release commit for 0.54.1
|
||||||
|
git reset --hard 297efcef9f3b7b17b7b2ed11c3ed7365498d6637
|
||||||
|
|
||||||
|
# updates all submodules recursively along their tracking branches
|
||||||
|
# i.e. https://github.com/ponylang/ponyc/blob/main/.gitmodules
|
||||||
|
git submodule update --recursive --init
|
||||||
|
|
||||||
|
# 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`.
|
||||||
|
make prefix="$PREFIX" install
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
rm -rf ponyc
|
5
packages/ponylang/0.54.1/compile
vendored
Normal file
5
packages/ponylang/0.54.1/compile
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Compile pony file(s)
|
||||||
|
rename 's/$/\.pony/' "$@" # Add .pony extension
|
||||||
|
ponyc -b out
|
4
packages/ponylang/0.54.1/environment
vendored
Normal file
4
packages/ponylang/0.54.1/environment
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Put 'export' statements here for environment variables
|
||||||
|
export PATH=$PWD/bin:$PATH
|
5
packages/ponylang/0.54.1/metadata.json
vendored
Normal file
5
packages/ponylang/0.54.1/metadata.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"language": "ponylang",
|
||||||
|
"version": "0.54.1",
|
||||||
|
"aliases": ["pony", "ponyc"]
|
||||||
|
}
|
6
packages/ponylang/0.54.1/run
vendored
Normal file
6
packages/ponylang/0.54.1/run
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# removes the first arg from $@, which is always the filename
|
||||||
|
shift
|
||||||
|
# runs the <outfile> executable with whatever args are left in $@
|
||||||
|
./out "$@"
|
3
packages/ponylang/0.54.1/test.pony
vendored
Normal file
3
packages/ponylang/0.54.1/test.pony
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
actor Main
|
||||||
|
new create(env: Env) =>
|
||||||
|
env.out.print("OK")
|
Loading…
Add table
Add a link
Reference in a new issue