about summary refs log tree commit diff
path: root/build.sh
diff options
context:
space:
mode:
authorgennyble <gen@nyble.dev>2023-11-23 14:28:36 -0600
committergennyble <gen@nyble.dev>2023-11-23 14:28:36 -0600
commit4d58f3d6ba1caaa331ae61471a6a0d6778d6baab (patch)
treebc2798b56d3c3ffde48cdb912e7297f282207dbb /build.sh
downloadv4l16-4d58f3d6ba1caaa331ae61471a6a0d6778d6baab.tar.gz
v4l16-4d58f3d6ba1caaa331ae61471a6a0d6778d6baab.zip
oh, i should commit :)
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..0b8b2c8
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,7 @@
+#!/usr/local/bin/fish
+
+set sysroot /Users/gen/sysroot
+
+env BINDGEN_EXTRA_CLANG_ARGS="-I$sysroot/usr/include" \
+	RUSTFLAGS="-Ctarget-feature=+crt-static" \
+	cargo build --target aarch64-unknown-linux-gnu --release
\ No newline at end of file