Move almost all run-make-fulldeps to run-make

They pass fine.
This commit is contained in:
Joshua Nelson 2023-03-30 07:34:55 -05:00
parent f2d9a3d077
commit 433da1fc04
696 changed files with 2 additions and 2 deletions

View file

@ -0,0 +1,5 @@
include ../tools.mk
all: $(call NATIVE_STATICLIB,test)
$(RUSTC) test.rs
$(call RUN,test) || exit 1

View file

@ -0,0 +1,8 @@
#include <stdint.h>
uint32_t foo();
uint32_t bar();
uint32_t add() {
return foo() + bar();
}

View file

@ -0,0 +1,19 @@
#[no_mangle]
pub extern "C" fn foo() -> i32 {
3
}
#[no_mangle]
pub extern "C" fn bar() -> i32 {
5
}
#[link(name = "test", kind = "static")]
extern "C" {
fn add() -> i32;
}
fn main() {
let back = unsafe { add() };
assert_eq!(8, back);
}