2024-08-30 09:58:08 +00:00
|
|
|
cp ../../clay.h clay.c;
|
2024-08-31 22:35:04 +00:00
|
|
|
# Intel Mac
|
2024-09-20 08:46:48 +00:00
|
|
|
clang -c -DCLAY_IMPLEMENTATION -o clay.o -static -target x86_64-apple-darwin clay.c -fPIC && ar r clay-odin/macos/clay.a clay.o;
|
2024-08-31 22:35:04 +00:00
|
|
|
# ARM Mac
|
2024-10-07 06:30:15 +00:00
|
|
|
clang -c -DCLAY_IMPLEMENTATION -o clay.o -static clay.c -fPIC && ar r clay-odin/macos-arm64/clay.a clay.o;
|
2024-08-31 22:35:04 +00:00
|
|
|
# x64 Windows
|
2024-09-20 08:46:48 +00:00
|
|
|
clang -c -DCLAY_IMPLEMENTATION -o clay-odin/windows/clay.lib -target x86_64-pc-windows-msvc -fuse-ld=llvm-lib -static clay.c;
|
2024-08-31 22:35:04 +00:00
|
|
|
# Linux
|
2024-09-20 08:46:48 +00:00
|
|
|
clang -c -DCLAY_IMPLEMENTATION -o clay.o -static -target x86_64-unknown-linux-gnu clay.c -fPIC && ar r clay-odin/linux/clay.a clay.o;
|
2024-08-31 22:35:04 +00:00
|
|
|
# WASM
|
2024-09-20 08:46:48 +00:00
|
|
|
clang -c -DCLAY_IMPLEMENTATION -o clay-odin/wasm/clay.o -target wasm32 -nostdlib -static clay.c;
|
2024-08-30 09:58:08 +00:00
|
|
|
rm clay.o;
|
2024-08-31 01:04:33 +00:00
|
|
|
rm clay.c;
|