Skip to content

Commit 7ac6397

Browse files
committed
Don't add -R/-Q . Top when nothing is passed
1 parent b2b4802 commit 7ac6397

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

coq_tools/custom_arguments.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def process_CoqProject(env, contents, passing=""):
303303
i += 1
304304

305305

306-
def update_env_with_libname_default(env, args, default=((".", "Top"),), passing=""):
306+
def update_env_with_libname_default(env, args, default=None, passing=""):
307307
if (
308308
len(
309309
getattr(args, passing + "libnames")
@@ -312,12 +312,13 @@ def update_env_with_libname_default(env, args, default=((".", "Top"),), passing=
312312
+ env[passing + "non_recursive_libnames"]
313313
)
314314
== 0
315-
):
315+
) and default is not None:
316+
# default = ((".", "Top"),)
316317
env[passing + "libnames"].extend(list(default))
317318

318319

319320
def update_env_with_libnames(
320-
env, args, default=((".", "Top"),), include_passing=False, use_default=True, use_passing_default=True
321+
env, args, default=None, include_passing=False, use_default=True, use_passing_default=True
321322
):
322323
all_keys = (
323324
"libnames",

coq_tools/import_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
lib_imports_fast = {}
6767
lib_imports_slow = {}
6868

69-
DEFAULT_LIBNAMES = ((".", "Top"),)
69+
DEFAULT_LIBNAMES = () # ((".", "Top"),)
7070

7171
IMPORT_ABSOLUTIZE_TUPLE = ("lib", "mod")
7272
ALL_ABSOLUTIZE_TUPLE = (

coq_tools/replace_imports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
lib_imports_fast = {}
2929
lib_imports_slow = {}
3030

31-
DEFAULT_LIBNAMES = ((".", "Top"),)
31+
DEFAULT_LIBNAMES = () # ((".", "Top"),)
3232

3333
IMPORT_LINE_REG = re.compile(
3434
r"^\s*(?:From|Require\s+Import|Require\s+Export|Require|Load\s+Verbose|Load)\s+(.*?)\.(?:\s|$)",

0 commit comments

Comments
 (0)