Skip to content

Commit 12887cc

Browse files
committed
Add new gate task: LibsInfo to list info about all libraries in FASTR_HOME/lib
1 parent ada2a32 commit 12887cc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

mx.fastr/mx_fastr.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,16 @@ def _fastr_gate_runner(args, tasks):
342342
new_env['R_DEFAULT_PACKAGES'] = 'base'
343343
run_r(['-q', '-e', 'extSoftVersion()'], 'R', env=new_env)
344344

345+
with mx_gate.Task('LibsInfo', tasks, tags=[mx_gate.Tags.always]) as t:
346+
if t:
347+
mx.log("Libraries captured in FASTR_HOME/lib:")
348+
lib_dir = os.path.join(_fastr_suite.dir, 'lib')
349+
for f in os.listdir(lib_dir):
350+
full_path = os.path.join(lib_dir, f)
351+
mx.run(['file', full_path], nonZeroIsFatal=False)
352+
mx.run(['objdump', '-s', '--section', '.comment', full_path], nonZeroIsFatal=False)
353+
mx.log('------')
354+
345355
# ---------------------------------
346356
# Style checks:
347357

0 commit comments

Comments
 (0)