mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 04:56:30 +02:00
Add provides key to some languages
Provides key allows 1 package to provide multiple languages Expect an API update to work with these new packages
This commit is contained in:
parent
3b25ec4386
commit
ccc1e4c08b
5 changed files with 37 additions and 10 deletions
4
packages/nasm/2.15.5/compile
vendored
4
packages/nasm/2.15.5/compile
vendored
|
@ -3,7 +3,7 @@
|
|||
# Put instructions to compile source code, remove this file if the language does not require this stage
|
||||
|
||||
|
||||
case "${PISTON_ALIAS}" in
|
||||
case "${PISTON_LANGUAGE}" in
|
||||
nasm)
|
||||
nasm -f elf32 -o binary.o "$@"
|
||||
ld -m elf_i386 binary.o -o binary
|
||||
|
@ -13,7 +13,7 @@ case "${PISTON_ALIAS}" in
|
|||
ld -m elf_x86_64 binary.o -o binary
|
||||
;;
|
||||
*)
|
||||
echo "How did you get here? (${PISTON_ALIAS})"
|
||||
echo "How did you get here? (${PISTON_LANGUAGE})"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
11
packages/nasm/2.15.5/metadata.json
vendored
11
packages/nasm/2.15.5/metadata.json
vendored
|
@ -1,5 +1,14 @@
|
|||
{
|
||||
"language": "nasm",
|
||||
"version": "2.15.5",
|
||||
"aliases": ["nasm64"]
|
||||
"provides": [
|
||||
{
|
||||
"language": "nasm",
|
||||
"aliases": ["asm", "nasm32"]
|
||||
},
|
||||
{
|
||||
"language": "nasm64",
|
||||
"aliases": ["asm64"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue