sdk: Add SyscallStubs to enable syscall interception when building programs for non-BPF (bp #12984) (#12993)

* Add SyscallStubs to enable syscall interception when building programs for non-BPF

(cherry picked from commit 9c53e1dfb2)

* Remove program_stubs!()

(cherry picked from commit 6d5889bdb5)

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2020-10-19 22:28:44 +00:00
committed by GitHub
parent 4bf0a54ed7
commit 77ba6d6784
23 changed files with 109 additions and 79 deletions

View File

@@ -365,8 +365,6 @@ fn process_instruction(
#[cfg(test)]
mod test {
use super::*;
// Pull in syscall stubs when building for non-BPF targets
solana_sdk::program_stubs!();
#[test]
fn create_program_address_is_defined() {