Skip to content

Commit

Permalink
fix(executor): add a prefix to the FFI fn to avoid symbol collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
ROMemories committed Nov 29, 2024
1 parent 56cac7e commit 5728129
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ariel-os-embassy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub(crate) fn init() {
}

#[cfg(feature = "executor-single-thread")]
#[export_name = "ariel_os_embassy_init"]
#[export_name = "__ariel_os_embassy_init"]
fn init() -> ! {
debug!("ariel-os-embassy::init(): using single thread executor");
let p = hal::init();
Expand Down
4 changes: 2 additions & 2 deletions src/ariel-os-rt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ fn startup() -> ! {
#[cfg(feature = "executor-single-thread")]
{
extern "Rust" {
fn ariel_os_embassy_init() -> !;
fn __ariel_os_embassy_init() -> !;
}
debug!("ariel_os_rt::startup() launching single thread executor");
unsafe { ariel_os_embassy_init() };
unsafe { __ariel_os_embassy_init() };
}

#[cfg(not(any(feature = "threading", feature = "executor-single-thread")))]
Expand Down

0 comments on commit 5728129

Please sign in to comment.