diff options
author | Eric Lindblad <lindblad@gmx.us> | 2022-07-08 19:49:44 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-07-13 08:28:29 -0400 |
commit | 61babb5edff00c2929ffbb615d8a3110db1b4b5b (patch) | |
tree | 8c44cf7dcf91bf050674e4e32e0c4e1cac56d093 | |
parent | 61a46c6d2bd20b9ba5d89c86e8d64b7149a38280 (diff) | |
download | haskell-61babb5edff00c2929ffbb615d8a3110db1b4b5b.tar.gz |
fix bootstrap
-rwxr-xr-x | hadrian/bootstrap/bootstrap.py | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/hadrian/bootstrap/bootstrap.py b/hadrian/bootstrap/bootstrap.py index 9609782200..e74c3e8f10 100755 --- a/hadrian/bootstrap/bootstrap.py +++ b/hadrian/bootstrap/bootstrap.py @@ -415,6 +415,9 @@ def main() -> None: else: plan = gen_fetch_plan(info) + if ghc is None: + ghc = find_ghc(args.with_compiler) + # In temporary directory, create a directory which we will archive tmpdir = TMPDIR.resolve() tmpdir.mkdir(parents=True, exist_ok=True) @@ -430,10 +433,14 @@ def main() -> None: archivename = shutil.make_archive(args.output, fmt, root_dir=rootdir) - print(f'Bootstrap sources saved to {archivename}') - print(f'Use `bootstrap.py -d {args.deps} -s {archivename}` to continue') + print(f""" +Bootstrap sources saved to {archivename} + +Use `bootstrap.py -w {ghc.ghc_path} -s {archivename}` to continue +""") elif(args.command == 'list-sources'): + ghc = find_ghc(args.with_compiler) plan = gen_fetch_plan(info) with open(args.output, 'w') as out: json.dump({path : val._asdict() for path,val in plan.items()}, out) @@ -447,8 +454,9 @@ The contents of $TARBALL should look like: ./plan-bootstrap.json ./{tarfmt.join(path for path in plan)} -Then use `bootstrap.py -s $TARBALL` to continue -Alternatively, you could use `bootstrap.py -d {args.deps} fetch -o $TARBALL` to download and generate the tarball, skipping this step +Then use `bootstrap.py -w {ghc.ghc_path} -s $TARBALL` to continue + +Alternatively, you could use `bootstrap.py -w {ghc.ghc_path} -d {args.deps} fetch -o $TARBALL` to download and generate the tarball, skipping this step """) elif(args.command == None): |