Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions reframe/core/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,3 +334,27 @@ def ldflags(self):
@property
def nvcc(self):
return self._nvcc

def details(self):
def format_flags(flags):
if flags is None:
return '<None>'
elif len(flags) == 0:
return "''"
else:
return ' '.join(flags)

base_details = super().details()
extra_details = [
' CC: %s' % self.cc,
' CXX: %s' % self.cxx,
' FTN: %s' % self.ftn,
' NVCC: %s' % self.nvcc,
' CFLAGS: %s' % format_flags(self.cflags),
' CXXFLAGS: %s' % format_flags(self.cxxflags),
' FFLAGS: %s' % format_flags(self.fflags),
' CPPFLAGS: %s' % format_flags(self.cppflags),
' LDFLAGS: %s' % format_flags(self.ldflags)
]

return '\n'.join([base_details, '\n'.join(extra_details)])