Generate binaries for different platforms

This commit is contained in:
Nic Barker 2024-08-30 21:50:20 +12:00
parent 0c523c7a47
commit 75ae1c8f7f
5 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
cp ../../clay.h clay.c;
clang -c -o clay.o -static clay.c -fPIC && ar r clay-odin/clay.a clay.o;
clang -c -o clay.o -static -target x86_64-apple-darwin clay.c -fPIC && ar r clay-odin/macos/clay.a clay.o;
clang -c -o clay.o -static clay.c -fPIC && ar r clay-odin/macos-arm64/clay.a clay.o;
clang -c -o clay-odin/windows/clay.lib -target x86_64-pc-windows-msvc -fuse-ld=llvm-lib -static clay.c;
rm clay.o;
rm clay.c;

Binary file not shown.

Binary file not shown.