summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2024-04-22 16:07:14 +0200
committerGitHub <noreply@github.com>2024-04-22 16:07:14 +0200
commit080fc875eb233010f160744b9d1e71d7fb52d8c9 (patch)
treed3ed14625b3c7300f6241f669df5940bb7d50ed8
parent69f417b26a4e89a26eb61e299a8b6aac2c87fb65 (diff)
downloadspack-080fc875eb233010f160744b9d1e71d7fb52d8c9.tar.gz
spack-080fc875eb233010f160744b9d1e71d7fb52d8c9.tar.bz2
spack-080fc875eb233010f160744b9d1e71d7fb52d8c9.tar.xz
spack-080fc875eb233010f160744b9d1e71d7fb52d8c9.zip
compiler.py: reduce verbosity of implicit link dirs parsing (#43777)
-rw-r--r--lib/spack/spack/compiler.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/spack/spack/compiler.py b/lib/spack/spack/compiler.py
index 7b7e0f8298..9c8cf33fb1 100644
--- a/lib/spack/spack/compiler.py
+++ b/lib/spack/spack/compiler.py
@@ -109,7 +109,6 @@ def _parse_link_paths(string):
"""
lib_search_paths = False
raw_link_dirs = []
- tty.debug("parsing implicit link info")
for line in string.splitlines():
if lib_search_paths:
if line.startswith("\t"):
@@ -124,7 +123,7 @@ def _parse_link_paths(string):
continue
if _LINKER_LINE_IGNORE.match(line):
continue
- tty.debug("linker line: %s" % line)
+ tty.debug(f"implicit link dirs: link line: {line}")
next_arg = False
for arg in line.split():
@@ -140,15 +139,12 @@ def _parse_link_paths(string):
link_dir_arg = _LINK_DIR_ARG.match(arg)
if link_dir_arg:
link_dir = link_dir_arg.group("dir")
- tty.debug("linkdir: %s" % link_dir)
raw_link_dirs.append(link_dir)
link_dir_arg = _LIBPATH_ARG.match(arg)
if link_dir_arg:
link_dir = link_dir_arg.group("dir")
- tty.debug("libpath: %s", link_dir)
raw_link_dirs.append(link_dir)
- tty.debug("found raw link dirs: %s" % ", ".join(raw_link_dirs))
implicit_link_dirs = list()
visited = set()
@@ -158,7 +154,7 @@ def _parse_link_paths(string):
implicit_link_dirs.append(normalized_path)
visited.add(normalized_path)
- tty.debug("found link dirs: %s" % ", ".join(implicit_link_dirs))
+ tty.debug(f"implicit link dirs: result: {', '.join(implicit_link_dirs)}")
return implicit_link_dirs