Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/MojoLlama/blob/main/src/mojollama/mojo_engine/build_zaya.sh # MojoLlama Archived Mojo/MAX quantizer and serving research repository (read-only history) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `MojoLlama / src / mojollama / mojo_engine / build_zaya.sh` 19 lines ยท 529 bytes Raw Blame History 1 #!/bin/bash 2 set -e 3 MOJO_LIB="$HOME/.local/share/uv/tools/mojo/lib/python3.11/site-packages/modular/lib" 4 SRC="zaya_gen_q8.mojo" 5 OBJ="${SRC%.mojo}.o" 6 BIN="${SRC%.mojo}" 7 8 echo "=== Building $BIN ===" 9 mojo build "$SRC" --emit object -o "$OBJ" 2>&1 10 gcc -o "$BIN" "$OBJ" \ 11 -L"$MOJO_LIB" \ 12 -lKGENCompilerRTShared \ 13 -lAsyncRTRuntimeGlobals \ 14 -lMSupportGlobals \ 15 -lAsyncRTMojoBindings \ 16 -lm -lpthread -ldl -lstdc++ 2>&1 17 echo "=== Done: $BIN ===" 18 echo "Run: LD_LIBRARY_PATH=\"$MOJO_LIB\" ./$BIN [nw]" 19 ls -lh "$BIN"