Skip to content

Commit

Permalink
libc: fix UnboundLocalError: local variable 'projects' referenced bef…
Browse files Browse the repository at this point in the history
…ore assignment

Fixes: #325
  • Loading branch information
nickdesaulniers committed Dec 12, 2024
1 parent 6deafd3 commit 37dbc82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zorg/buildbot/builders/annotated/libc-linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ def main(argv):
if lint_build:
cmake_args.append('-DLLVM_LIBC_CLANG_TIDY=%s' % clang_tidy)

projects = []
if bootstrap_build:
projects = ['clang']
projects.append('clang')

if args.debug:
cmake_args.append('-DCMAKE_BUILD_TYPE=Debug')
Expand All @@ -87,7 +88,8 @@ def main(argv):
if fullbuild and not args.asan and not lint_build and not riscv_build:
projects.extend(['clang', 'compiler-rt'])

cmake_args.append('-DLLVM_ENABLE_PROJECTS={}'.format(';'.join(projects)))
if projects:
cmake_args.append('-DLLVM_ENABLE_PROJECTS={}'.format(';'.join(projects)))

if fullbuild and not args.asan and not lint_build and not riscv_build:
cmake_args.append('-DLLVM_LIBC_INCLUDE_SCUDO=ON')
Expand Down

0 comments on commit 37dbc82

Please sign in to comment.