mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 04:48:00 +03:00
updates ivory codegen to fail if ivory.pill is an lfs pointer
This commit is contained in:
parent
cc66d6b010
commit
7f8f395b6c
@ -60,6 +60,14 @@ include/ca-bundle.h:
|
||||
|
||||
include/ivory.h:
|
||||
@echo XXD -i $(IVORY)
|
||||
@# heuristics to confirm the ivory pill is valid
|
||||
@#
|
||||
@# greater than 10KB
|
||||
@# first 7 bytes != "version" (start of an lfs pointer)
|
||||
@# XX move these to a nix build that produces the ivory pill
|
||||
@#
|
||||
@test "`du -k $(IVORY) | cut -f1`" -gt 10
|
||||
@test "`cat $(IVORY) | head -c 7`" != "version"
|
||||
@cat $(IVORY) > u3_Ivory.pill
|
||||
@xxd -i u3_Ivory.pill > include/ivory.h
|
||||
@rm u3_Ivory.pill
|
||||
|
Loading…
Reference in New Issue
Block a user