llvm: add libs property (#28621)
* llvm: add libs property * Use llvm-config helper for libs property
This commit is contained in:
parent
fefe65a35b
commit
e7e6a16064
@ -476,6 +476,11 @@ def f77(self):
|
||||
result = os.path.join(self.spec.prefix.bin, 'flang')
|
||||
return result
|
||||
|
||||
@property
|
||||
def libs(self):
|
||||
return LibraryList(self.llvm_config("--libfiles", "all",
|
||||
result="list"))
|
||||
|
||||
@run_before('cmake')
|
||||
def codesign_check(self):
|
||||
if self.spec.satisfies("+code_signing"):
|
||||
@ -721,9 +726,10 @@ def llvm_config(self, *args, **kwargs):
|
||||
if not kwargs.get('output'):
|
||||
kwargs['output'] = str
|
||||
ret = lc(*args, **kwargs)
|
||||
if kwargs.get('output') == "list":
|
||||
if kwargs.get('result') == "list":
|
||||
return ret.split()
|
||||
return ret
|
||||
else:
|
||||
return ret
|
||||
|
||||
|
||||
def get_llvm_targets_to_build(spec):
|
||||
|
Loading…
Reference in New Issue
Block a user