Skip to content

Commit

Permalink
llvm: minimal fix for llvm_config method (spack#48501)
Browse files Browse the repository at this point in the history
  • Loading branch information
alalazo authored Jan 10, 2025
1 parent 7edb525 commit 2e472a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions var/spack/repos/builtin/packages/llvm/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,12 +1144,12 @@ def post_install(self):
with open(os.path.join(self.prefix.bin, cfg), "w") as 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"))
if not kwargs.get("output"):
kwargs["output"] = str
ret = lc(*args, **kwargs)
if kwargs.get("result") == "list":
if result == "list":
return ret.split()
else:
return ret
Expand Down

0 comments on commit 2e472a1

Please sign in to comment.