Skip to content

Improve build scripts for bash compatibility and update README #4537

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Septa2112
Copy link
Contributor

@Septa2112 Septa2112 commented Aug 4, 2025

Issue

Now running ./build_llvm.sh will cause an issue: ./build_llvm.sh: 17: source: not found.

Because the script is executed with the system default shell (sh), which does not support the source command used in the script, it will cause the Python virtual environment not to activate actually.

How to Fix

The script should either be explicitly run using bash (e.g., bash ./build_llvm.sh) or the script itself should specify bash as the default shell by adding the shebang line #!/usr/bin/env bash at the top.

My improvements:

  • Updated the README.
  • Modified the shebang line.
  • Added set -e to make the script exit immediately if any command fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant