Replies: 17 comments 25 replies
-
Command::new("./configure")
.arg("--cc=clang")
.arg("--cxx=clang++")
.current_dir(&build)
.status()
.unwrap();
Command::new("make")
.arg("-C")
.arg(&build)
.arg("CFLAGS=-flto=thin -g -O3 -Wall -Wextra -fno-stack-protector")
.arg("CXXFLAGS=-flto=thin")
.arg("V=1")
.status()
.unwrap(); |
Beta Was this translation helpful? Give feedback.
-
[profile.release]
lto = "thin"
codegen-units = 1 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
without ThinLTO
|
Beta Was this translation helpful? Give feedback.
-
with ThinLTO
|
Beta Was this translation helpful? Give feedback.
-
#[inline(never)]
#[no_mangle]
pub fn test_func_zzwxh(sqe:&mut io_uring_sqe) {
unsafe {
io_uring_prep_nop(sqe);
}
} |
Beta Was this translation helpful? Give feedback.
-
Those flags are needed to compile liburing nolibc.
Just do
You probably need to alter the |
Beta Was this translation helpful? Give feedback.
-
Although you believe that |
Beta Was this translation helpful? Give feedback.
-
https://discord.com/channels/636084430946959380/636732781086638081/1149426538811510924 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hmm, you know, the more I think about this, I'm almost wondering if it's just outright better to transliterate liburing to Rust and maintain it as a separate fork. This, of course, brings about the possibility of some impl divergence and lag but seeing the contortions I had to go through and what zzwxh is going through, a native impl might be more appropriate. Fundamentally, liburing is just a userspace wrapper around io_uring. I don't see any inherent reason why we couldn't just translate this code. |
Beta Was this translation helpful? Give feedback.
-
Hi @aaaaaaaaaaasjksj, |
Beta Was this translation helpful? Give feedback.
-
liburing/src/Makefile
Line 48 in 660cefa
llvm ThinLTO prevented until remove
-ffreestanding
-fno-builtin
What are they
-ffreestanding
-fno-builtin
Can i remove them safely
Can i enable LTO without changing Makefile s
Beta Was this translation helpful? Give feedback.
All reactions