Skip to content

Commit

Permalink
chore: add cargo:rustc-check-cfg for __abi-embed-checked feature …
Browse files Browse the repository at this point in the history
…in `near-sdk-macros` build.rs
  • Loading branch information
dj8yf0μl committed Jul 31, 2024
1 parent 0f46b0d commit 5c2ef28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions near-sdk-macros/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
fn main() {
println!("cargo:rustc-check-cfg=cfg(feature, values(\"__abi-embed-checked\"))");
if cfg!(feature = "__abi-embed") {
if option_env!("CARGO_NEAR_ABI_PATH").is_some() {
println!("cargo:rustc-cfg=feature=\"__abi-embed-checked\"");
Expand Down

0 comments on commit 5c2ef28

Please sign in to comment.