mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
pkg(nasm-2.15.5): Add nasm 2.15.5
This commit is contained in:
parent
a5ba0f5ee6
commit
05dc79d9f8
7 changed files with 90 additions and 0 deletions
21
packages/nasm/2.15.5/compile
vendored
Normal file
21
packages/nasm/2.15.5/compile
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put instructions to compile source code, remove this file if the language does not require this stage
|
||||
|
||||
|
||||
case "${PISTON_ALIAS}" in
|
||||
nasm)
|
||||
nasm -f elf32 -o binary.o $*
|
||||
ld -m elf_i386 binary.o -o binary
|
||||
;;
|
||||
nasm64)
|
||||
nasm -f elf64 -o binary.o $*
|
||||
ld -m elf_x86_64 binary.o -o binary
|
||||
;;
|
||||
*)
|
||||
echo "How did you get here? (${PISTON_ALIAS})"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
chmod +x ./binary
|
Loading…
Add table
Add a link
Reference in a new issue