llvm: minimal fix for llvm_config method (#48501)
This commit is contained in:
parent
7edb525599
commit
2e472a13e5
@ -1144,12 +1144,12 @@ def post_install(self):
|
|||||||
with open(os.path.join(self.prefix.bin, cfg), "w") as f:
|
with open(os.path.join(self.prefix.bin, cfg), "w") as f:
|
||||||
print(gcc_install_dir_flag, file=f)
|
print(gcc_install_dir_flag, file=f)
|
||||||
|
|
||||||
def llvm_config(self, *args, **kwargs):
|
def llvm_config(self, *args, result=None, **kwargs):
|
||||||
lc = Executable(self.prefix.bin.join("llvm-config"))
|
lc = Executable(self.prefix.bin.join("llvm-config"))
|
||||||
if not kwargs.get("output"):
|
if not kwargs.get("output"):
|
||||||
kwargs["output"] = str
|
kwargs["output"] = str
|
||||||
ret = lc(*args, **kwargs)
|
ret = lc(*args, **kwargs)
|
||||||
if kwargs.get("result") == "list":
|
if result == "list":
|
||||||
return ret.split()
|
return ret.split()
|
||||||
else:
|
else:
|
||||||
return ret
|
return ret
|
||||||
|
Loading…
Reference in New Issue
Block a user