[Git][ghc/ghc][master] boot: cleanup legacy args

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Fri Aug 26 19:06:51 UTC 2022



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
1007829b by Cheng Shao at 2022-08-26T15:06:40-04:00
boot: cleanup legacy args

Cleanup legacy boot script args, following removal of the legacy make
build system.

- - - - -


2 changed files:

- boot
- validate


Changes:

=====================================
boot
=====================================
@@ -4,19 +4,11 @@ import glob
 import os
 import os.path
 import sys
-import argparse
 from textwrap import dedent
 import subprocess
 import re
 import shutil
 
-cwd = os.getcwd()
-
-parser = argparse.ArgumentParser()
-parser.add_argument('--validate', action='store_true', help='Run in validate mode')
-parser.add_argument('--hadrian', action='store_true', help='Do not assume the make base build system')
-args = parser.parse_args()
-
 # Packages whose libraries aren't in the submodule root
 EXCEPTIONS = {
     'libraries/containers/': 'libraries/containers/containers/'


=====================================
validate
=====================================
@@ -259,7 +259,7 @@ if [ $build_only -eq 1 ] ||
 
     if [ $no_clean -eq 0 ]; then
         $hadrian clean && rm -rf $hadrian_build_root
-        python3 ./boot --validate
+        python3 ./boot
         $configure_cmd --enable-tarballs-autodownload $CONFIG_ARGS
     fi
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1007829bfb18708dda77b4eb6106fce9cb05f908

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1007829bfb18708dda77b4eb6106fce9cb05f908
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20220826/3c58ec41/attachment-0001.html>


More information about the ghc-commits mailing list