Is it possible to build std lib without building rustc?

Hi,

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.

Thanks.

You might be interested in

1 Like

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

$ ./x.py build library/std

I tried but it seems not doing any actual build.

then tried:

$ ./x.py 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.