mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 13:36:31 +02:00
Merge branch 'master' into add-hy-1.0a4
This commit is contained in:
commit
fc33860983
30 changed files with 138 additions and 17 deletions
9
packages/bqn/1.0.0/build.sh
vendored
Normal file
9
packages/bqn/1.0.0/build.sh
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
git clone "https://github.com/dzaima/CBQN" bqn
|
||||
cd bqn
|
||||
|
||||
git checkout 88f65850fa6ac28bc50886c5942652f21d5be924
|
||||
make CC=gcc
|
5
packages/bqn/1.0.0/environment
vendored
Normal file
5
packages/bqn/1.0.0/environment
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Python and Vyxal path
|
||||
export PATH=$PWD/bin:$PATH
|
||||
export BQN_PATH=$PWD/bqn
|
5
packages/bqn/1.0.0/metadata.json
vendored
Normal file
5
packages/bqn/1.0.0/metadata.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "bqn",
|
||||
"version": "1.0.0",
|
||||
"aliases": []
|
||||
}
|
3
packages/bqn/1.0.0/run
vendored
Normal file
3
packages/bqn/1.0.0/run
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
$BQN_PATH/BQN "$@"
|
1
packages/bqn/1.0.0/test.bqn
vendored
Normal file
1
packages/bqn/1.0.0/test.bqn
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
•Out @⊸+∘(+⟜(2⊸×)´∘⌽¨)∘(-⟜'0') "01001111"‿"01001011"
|
5
packages/rust/1.62.0/build.sh
vendored
Executable file
5
packages/rust/1.62.0/build.sh
vendored
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
curl -OL "https://static.rust-lang.org/dist/rust-1.62.0-x86_64-unknown-linux-gnu.tar.gz"
|
||||
tar xzvf rust-1.62.0-x86_64-unknown-linux-gnu.tar.gz
|
||||
rm rust-1.62.0-x86_64-unknown-linux-gnu.tar.gz
|
6
packages/rust/1.62.0/compile
vendored
Executable file
6
packages/rust/1.62.0/compile
vendored
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# https://stackoverflow.com/questions/38041331/rust-compiler-cant-find-crate-for-std
|
||||
# Rust compiler needs to find the stdlib to link against
|
||||
rustc -o binary -L ${RUST_INSTALL_LOC}/rustc/lib -L ${RUST_INSTALL_LOC}/rust-std-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib "$@"
|
||||
chmod +x binary
|
5
packages/rust/1.62.0/environment
vendored
Executable file
5
packages/rust/1.62.0/environment
vendored
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH=$PWD/rust-1.62.0-x86_64-unknown-linux-gnu/rustc/bin/:$PATH
|
||||
export RUST_INSTALL_LOC=$PWD/rust-1.62.0-x86_64-unknown-linux-gnu
|
7
packages/rust/1.62.0/metadata.json
vendored
Normal file
7
packages/rust/1.62.0/metadata.json
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"language": "rust",
|
||||
"version": "1.62.0",
|
||||
"aliases": [
|
||||
"rs"
|
||||
]
|
||||
}
|
4
packages/rust/1.62.0/run
vendored
Executable file
4
packages/rust/1.62.0/run
vendored
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
shift
|
||||
./binary "$@"
|
3
packages/rust/1.62.0/test.rs
vendored
Normal file
3
packages/rust/1.62.0/test.rs
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println!("OK");
|
||||
}
|
5
packages/rust/1.63.0/build.sh
vendored
Executable file
5
packages/rust/1.63.0/build.sh
vendored
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
curl -OL "https://static.rust-lang.org/dist/rust-1.63.0-x86_64-unknown-linux-gnu.tar.gz"
|
||||
tar xzvf rust-1.63.0-x86_64-unknown-linux-gnu.tar.gz
|
||||
rm rust-1.63.0-x86_64-unknown-linux-gnu.tar.gz
|
6
packages/rust/1.63.0/compile
vendored
Executable file
6
packages/rust/1.63.0/compile
vendored
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# https://stackoverflow.com/questions/38041331/rust-compiler-cant-find-crate-for-std
|
||||
# Rust compiler needs to find the stdlib to link against
|
||||
rustc -o binary -L ${RUST_INSTALL_LOC}/rustc/lib -L ${RUST_INSTALL_LOC}/rust-std-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib "$@"
|
||||
chmod +x binary
|
5
packages/rust/1.63.0/environment
vendored
Executable file
5
packages/rust/1.63.0/environment
vendored
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH=$PWD/rust-1.63.0-x86_64-unknown-linux-gnu/rustc/bin/:$PATH
|
||||
export RUST_INSTALL_LOC=$PWD/rust-1.63.0-x86_64-unknown-linux-gnu
|
7
packages/rust/1.63.0/metadata.json
vendored
Normal file
7
packages/rust/1.63.0/metadata.json
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"language": "rust",
|
||||
"version": "1.63.0",
|
||||
"aliases": [
|
||||
"rs"
|
||||
]
|
||||
}
|
4
packages/rust/1.63.0/run
vendored
Executable file
4
packages/rust/1.63.0/run
vendored
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
shift
|
||||
./binary "$@"
|
7
packages/rust/1.63.0/test.rs
vendored
Normal file
7
packages/rust/1.63.0/test.rs
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
fn main() {
|
||||
println!("OK");
|
||||
|
||||
// 1.63.0 features
|
||||
use std::sync::Mutex;
|
||||
const _M: Mutex<()> = Mutex::new(());
|
||||
}
|
2
packages/smalltalk/3.2.3/run
vendored
2
packages/smalltalk/3.2.3/run
vendored
|
@ -4,5 +4,5 @@ code_file=`pwd`/"$1"
|
|||
shift
|
||||
|
||||
cd $SMALLTALK_PATH
|
||||
$SMALLTALK_PATH/gst "$code_file" "$@"
|
||||
$SMALLTALK_PATH/gst "$code_file" -a "$@"
|
||||
|
||||
|
|
10
packages/zig/0.9.1/build.sh
vendored
Executable file
10
packages/zig/0.9.1/build.sh
vendored
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
mkdir -p bin
|
||||
cd bin/
|
||||
|
||||
curl -L "https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz" -o zig.tar.xz
|
||||
tar xf zig.tar.xz --strip-components=1
|
||||
rm zig.tar.xz
|
||||
|
||||
cd ../
|
6
packages/zig/0.9.1/compile
vendored
Normal file
6
packages/zig/0.9.1/compile
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# optimizing for small programs
|
||||
rename 's/$/\.zig/' "$@" # Add .zig extension
|
||||
|
||||
zig build-exe -O ReleaseSafe --color off --cache-dir . --global-cache-dir . --name out *.zig
|
4
packages/zig/0.9.1/environment
vendored
Normal file
4
packages/zig/0.9.1/environment
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# compiler path
|
||||
export PATH=$PWD/bin:$PATH
|
8
packages/zig/0.9.1/metadata.json
vendored
Normal file
8
packages/zig/0.9.1/metadata.json
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"language": "zig",
|
||||
"version": "0.9.1",
|
||||
"aliases": ["zig"],
|
||||
"limit_overrides": {
|
||||
"compile_timeout": 15000
|
||||
}
|
||||
}
|
4
packages/zig/0.9.1/run
vendored
Normal file
4
packages/zig/0.9.1/run
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
shift # Filename is only used in compile step, so we can take it out here
|
||||
./out "$@"
|
6
packages/zig/0.9.1/test.zig
vendored
Normal file
6
packages/zig/0.9.1/test.zig
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
const std = @import("std");
|
||||
|
||||
pub fn main() !void {
|
||||
const stdout = std.io.getStdOut().writer();
|
||||
try stdout.print("OK\n", .{});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue