ciabatta/test.sh

8 lines
281 B
Bash
Raw Normal View History

2023-07-22 14:30:04 +00:00
#!/bin/bash
if [ "$1" != "-shared" ]; then
clang -static -nostdlib tests/empty.c lib/ciabatta.a -Iinclude
else
2023-07-22 16:28:16 +00:00
clang -g -fno-stack-protector -fPIE tests/empty.c -c -o tests/empty.o
2023-07-22 14:30:04 +00:00
ld -no-pie -nostdlib lib/entry.o tests/empty.o lib/ciabatta.so lib/ctors.o -Iinclude
fi