Skip to content

Commit 2e472a1

Browse files
authored
llvm: minimal fix for llvm_config method (spack#48501)
1 parent 7edb525 commit 2e472a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

var/spack/repos/builtin/packages/llvm/package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,12 +1144,12 @@ def post_install(self):
11441144
with open(os.path.join(self.prefix.bin, cfg), "w") as f:
11451145
print(gcc_install_dir_flag, file=f)
11461146

1147-
def llvm_config(self, *args, **kwargs):
1147+
def llvm_config(self, *args, result=None, **kwargs):
11481148
lc = Executable(self.prefix.bin.join("llvm-config"))
11491149
if not kwargs.get("output"):
11501150
kwargs["output"] = str
11511151
ret = lc(*args, **kwargs)
1152-
if kwargs.get("result") == "list":
1152+
if result == "list":
11531153
return ret.split()
11541154
else:
11551155
return ret

0 commit comments

Comments
 (0)