Skip to content

Commit

Permalink
Update Makefile for cosmocc build
Browse files Browse the repository at this point in the history
  • Loading branch information
trholding committed Jul 30, 2023
1 parent 3235440 commit a70719d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ rungnu:
runompgnu:
$(CC) -Ofast -fopenmp -std=gnu11 run.c -lm -o run

.PHONY: cosmorun
cosmorun:
cosmocc -Ofast -D COSMO_BLINK -D COSMO_METAL -D COSMO_ZIP run.c -lm -o run.com
zip run.com out/model.bin
zip run.com tokenizer.bin

.PHONY: clean
clean:
rm -f run

0 comments on commit a70719d

Please sign in to comment.