microkernel
microkernel copied to clipboard
[build] Improve Readability of `build.rs`
Description
The build.rs
should be improved for code readability: break the huge main function into smaller functions.
A simple idea is to have the following functions:
-
setup_path()
-
setup_toolchain()
-
collect_sources()
-
compile_source()
-
build_archive()