mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
correct the handling of bootstrap-cache-path
option
This change makes `build.bootstrap-cache-path` option to be configurable with `./configure` script, so it can be used like `./configure --bootstrap-cache-path=demo`. Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
241fc135fc
commit
bd479113d3
|
@ -302,7 +302,7 @@
|
||||||
|
|
||||||
# Set the bootstrap/download cache path. It is useful when building rust
|
# Set the bootstrap/download cache path. It is useful when building rust
|
||||||
# repeatedly in a CI invironment.
|
# repeatedly in a CI invironment.
|
||||||
# bootstrap-cache-path = /shared/cache
|
#bootstrap-cache-path = /path/to/shared/cache
|
||||||
|
|
||||||
# Enable a build of the extended Rust tool set which is not only the compiler
|
# Enable a build of the extended Rust tool set which is not only the compiler
|
||||||
# but also tools such as Cargo. This will also produce "combined installers"
|
# but also tools such as Cargo. This will also produce "combined installers"
|
||||||
|
|
|
@ -152,9 +152,9 @@ v("default-linker", "rust.default-linker", "the default linker")
|
||||||
# (others are conditionally saved).
|
# (others are conditionally saved).
|
||||||
o("manage-submodules", "build.submodules", "let the build manage the git submodules")
|
o("manage-submodules", "build.submodules", "let the build manage the git submodules")
|
||||||
o("full-bootstrap", "build.full-bootstrap", "build three compilers instead of two (not recommended except for testing reproducible builds)")
|
o("full-bootstrap", "build.full-bootstrap", "build three compilers instead of two (not recommended except for testing reproducible builds)")
|
||||||
o("bootstrap-cache-path", "build.bootstrap-cache-path", "use provided path for the bootstrap cache")
|
|
||||||
o("extended", "build.extended", "build an extended rust tool set")
|
o("extended", "build.extended", "build an extended rust tool set")
|
||||||
|
|
||||||
|
v("bootstrap-cache-path", None, "use provided path for the bootstrap cache")
|
||||||
v("tools", None, "List of extended tools will be installed")
|
v("tools", None, "List of extended tools will be installed")
|
||||||
v("codegen-backends", None, "List of codegen backends to build")
|
v("codegen-backends", None, "List of codegen backends to build")
|
||||||
v("build", "build.build", "GNUs ./configure syntax LLVM build triple")
|
v("build", "build.build", "GNUs ./configure syntax LLVM build triple")
|
||||||
|
@ -359,6 +359,8 @@ def apply_args(known_args, option_checking, config):
|
||||||
set('target.{}.llvm-filecheck'.format(build_triple), value, config)
|
set('target.{}.llvm-filecheck'.format(build_triple), value, config)
|
||||||
elif option.name == 'tools':
|
elif option.name == 'tools':
|
||||||
set('build.tools', value.split(','), config)
|
set('build.tools', value.split(','), config)
|
||||||
|
elif option.name == 'bootstrap-cache-path':
|
||||||
|
set('build.bootstrap-cache-path', value, config)
|
||||||
elif option.name == 'codegen-backends':
|
elif option.name == 'codegen-backends':
|
||||||
set('rust.codegen-backends', value.split(','), config)
|
set('rust.codegen-backends', value.split(','), config)
|
||||||
elif option.name == 'host':
|
elif option.name == 'host':
|
||||||
|
|
Loading…
Reference in a new issue