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:
Thomas Hobson 2021-04-25 13:11:33 +12:00
parent 3b25ec4386
commit ccc1e4c08b
No known key found for this signature in database
GPG key ID: 9F1FD9D87950DB6F
5 changed files with 37 additions and 10 deletions

View file

@ -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

View file

@ -1,5 +1,14 @@
{
"language": "nasm",
"version": "2.15.5",
"aliases": ["nasm64"]
"provides": [
{
"language": "nasm",
"aliases": ["asm", "nasm32"]
},
{
"language": "nasm64",
"aliases": ["asm64"]
}
]
}