Generate keypair file for c program deployment (#15080)

* Generate keypair file for c program deployment

* Build and use solana-keygen in test-stable-perf
This commit is contained in:
Jack May
2021-02-04 13:56:12 -08:00
committed by GitHub
parent e4d0d4bfae
commit bba1b49663
2 changed files with 9 additions and 0 deletions

View File

@ -168,6 +168,11 @@ $1: $2
@echo "[lld] $1 ($2)"
$(_@)mkdir -p $(dir $1)
$(_@)$(LLD) $(BPF_LLD_FLAGS) -o $1 $2
ifeq (,$(wildcard $(subst .so,-keypair.json,$1)))
$(_@)solana-keygen new --no-passphrase --silent -o $(subst .so,-keypair.json,$1)
endif
@echo To deploy this program:
@echo $$$$ solana program deploy $(realpath $1)
endef
define TEST_C_RULE