spl memo linking windows (#11000)

* Update spl-memo to fix windows linking error

* Only programs need the stubs

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
Jack May 2020-07-10 18:39:52 -07:00 committed by GitHub
parent 145906123a
commit f0b22b1b23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

11
Cargo.lock generated
View File

@ -4651,6 +4651,12 @@ dependencies = [
"tiny-bip39",
]
[[package]]
name = "solana-sdk-bpf-test"
version = "1.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d1e668937b3fc2ecb13ad0285f318b0f81ba06c1b923d4cbc4d9868fb09d39d8"
[[package]]
name = "solana-sdk-macro"
version = "1.2.4"
@ -5325,11 +5331,12 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
[[package]]
name = "spl-memo"
version = "1.0.0"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22e6b954ac8b1df3f0bbb6ad1f21607be304f3cc9914bb9107c44b2065c8479e"
checksum = "db4ebc6a6d50b55cbe7c84c7f6cd0259f4f82a169eb49ef65ca62b9c69a76a1f"
dependencies = [
"solana-sdk 1.2.4",
"solana-sdk-bpf-test",
]
[[package]]

View File

@ -1,5 +1,7 @@
//! @brief Syscall stubs when building for non-BPF targets
#![cfg(feature = "program")]
#[cfg(not(target_arch = "bpf"))]
fn print_line_to_stdout(_message: &str) {
#[cfg(not(feature = "program"))]