mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Fix eh_personality reference error (#383)
Fix issue with undefined reference to `rust_eh_personality' when compiling
This commit is contained in:
committed by
Philipp Oppermann
parent
b188e8a617
commit
651a33a98d
@@ -54,7 +54,7 @@ Now we place our root source file in `src/lib.rs`:
|
||||
#[no_mangle]
|
||||
pub extern fn rust_main() {}
|
||||
|
||||
#[lang = "eh_personality"] extern fn eh_personality() {}
|
||||
#[lang = "eh_personality"] #[no_mangle] pub extern fn eh_personality() {}
|
||||
#[lang = "panic_fmt"] #[no_mangle] pub extern fn panic_fmt() -> ! {loop{}}
|
||||
```
|
||||
Let's break it down:
|
||||
|
||||
Reference in New Issue
Block a user