Follow

IoT SDK build on WSL is super slow arg ... Must find a way to do native Windows build ... Without MSYS

🤔

Dumping the GCC Commands from "make" ... And running them under Windows CMD ... So much faster!

🤔

"cargo" Build Script can call GCC to compile C code ... Maybe we use this instead of "make" to build IoT SDK on Windows? 🤔

doc.rust-lang.org/cargo/refere

@lupyuen
If you have to stick with makefiles and gcc just make sure you run gcc and make from cmd. Its best you can get so far.

@lupyuen use the lib.rs/cc crate for this. It ensures Rust's compilation settings are copied to the C compiler, and it finds the right compiler for cross compilation, weird platforms etc.

@lupyuen

I might try to prebuild clang for you for win. Clang is generally faster in compile times over gcc due to diff arch. Less exes less processes etc. Integrated assembler and linker etc.

Sidenote try to set up linux build machine. 100s of processes there is no prob.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.