diff options
| author | onur-ozkan <work@onurozkan.dev> | 2023-09-30 20:03:26 +0300 |
|---|---|---|
| committer | onur-ozkan <work@onurozkan.dev> | 2023-09-30 20:03:26 +0300 |
| commit | 88e7718ec38bee9dfd16e9fc37896a637a33b1ae (patch) | |
| tree | fced1e358bc645b4729804065501465512993ef3 /src/bootstrap/bootstrap.py | |
| parent | bf982631df866498a295528ff0047207e881d55d (diff) | |
| download | rust-88e7718ec38bee9dfd16e9fc37896a637a33b1ae.tar.gz rust-88e7718ec38bee9dfd16e9fc37896a637a33b1ae.zip | |
warn if source is not either a git clone or a dist tarball
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Diffstat (limited to 'src/bootstrap/bootstrap.py')
| -rw-r--r-- | src/bootstrap/bootstrap.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index d58f0d54d3a..9c4a595005f 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -1048,6 +1048,12 @@ def bootstrap(args): """Configure, fetch, build and run the initial bootstrap""" rust_root = os.path.abspath(os.path.join(__file__, '../../..')) + if not os.path.exists(os.path.join(rust_root, '.git')) and \ + os.path.exists(os.path.join(rust_root, '.github')): + eprint("warn: Looks like you are trying to bootstrap Rust from a source that is neither a " + "git clone nor distributed tarball.\nThis build may fail due to missing submodules " + "unless you put them in place manually.") + # Read from `--config`, then `RUST_BOOTSTRAP_CONFIG`, then `./config.toml`, # then `config.toml` in the root directory. toml_path = args.config or os.getenv('RUST_BOOTSTRAP_CONFIG') |
