Skip to content

Commit

Permalink
fix: build library without solana sdk (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
Riateche authored Jul 25, 2024
1 parent a278681 commit 94babc4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions program/c/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
OUT_DIR := $(if $(OUT_DIR),$(OUT_DIR),./target)
SOLANA := $(shell dirname $(shell which cargo-build-bpf))

ifneq ("$(wildcard $(SOLANA)/sdk/bpf/c/bpf.mk)","")
$(info using Solana BPF SDK)
include $(SOLANA)/sdk/bpf/c/bpf.mk
else
$(info using Solana SBF SDK)
include $(SOLANA)/sdk/sbf/c/sbf.mk
ifneq ("$(SOLANA)","")
ifneq ("$(wildcard $(SOLANA)/sdk/bpf/c/bpf.mk)","")
$(info using Solana BPF SDK)
include $(SOLANA)/sdk/bpf/c/bpf.mk
else
$(info using Solana SBF SDK)
include $(SOLANA)/sdk/sbf/c/sbf.mk
endif
endif

FEATURES_H_BODY:="\#pragma once"
Expand Down
2 changes: 1 addition & 1 deletion program/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyth-oracle"
version = "2.32.0"
version = "2.32.1"
edition = "2021"
license = "Apache 2.0"
publish = false
Expand Down

0 comments on commit 94babc4

Please sign in to comment.