Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libc: fix UnboundLocalError: local variable 'projects' referenced before assignment #341

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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