forked from M-Labs/nac3
1
0
Fork 0

nac3standalone: add dummy support for artiq_personality

So existing tests can run again
This commit is contained in:
Sebastien Bourdeauducq 2022-02-13 11:35:00 +08:00
parent 343f6fd067
commit 31e76ca3b6
2 changed files with 6 additions and 1 deletions

View File

@ -53,6 +53,11 @@ pub extern "C" fn output_int32_list(x: &cslice::CSlice<i32>) {
println!("]"); println!("]");
} }
#[no_mangle]
pub extern "C" fn __artiq_personality(_state: u32, _exception_object: u32, _context: u32) -> u32 {
unimplemented!();
}
extern "C" { extern "C" {
fn run() -> i32; fn run() -> i32;

View File

@ -16,5 +16,5 @@ fi
rm -f *.o rm -f *.o
$nac3standalone $1 $nac3standalone $1
rustc -o demo demo.rs -Clink-arg=./module.o rustc -o demo demo.rs -Crelocation-model=static -Clink-arg=./module.o
./demo ./demo