llvm-amdgpu: Fixes "UnboundLocalError: local variable referenced before assignment" (#22562)

Co-authored-by: Jan Ciesko <jciesko@sandia.gov>
This commit is contained in:
Jan Ciesko 2021-03-26 15:24:08 -06:00 committed by GitHub
parent f713ebcb01
commit d606cf93bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,7 @@ def cmake_args(self):
compiler = Executable(self.compiler.cc)
gcc_output = compiler('-print-search-dirs', output=str, error=str)
gcc_prefix = ""
for line in gcc_output.splitlines():
if line.startswith("install:"):
# Get path and strip any whitespace