Is it possible to build std lib without building rustc?


I was wondering if it is possible to build library/std only as it is own crate anyway? My motivation is to save time and space of building the full rustc compiler.


You might be interested in

1 Like

with download-rustc = true, can I run the following to build std?

$ ./ build library/std

I tried but it seems not doing any actual build.

then tried:

$ ./ build

it is building LLVM files, is that expected? (I was hoping not to need to build something like LLVM files)

-- Build files have been written to: /Users/myid/work/rust/build/x86_64-apple-darwin/llvm/build
running: "cmake" "--build" "." "--target" "install" "--config" "Release" "--" "-j" "8"
[104/2918] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/LineIterator.cpp.o^C
ninja: build stopped: interrupted by user.

You can also set download-ci-llvm = true in addition to download-rustc = true.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.