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

Make setting CHPL_* environment variables to invalid values an error #26501

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

Conversation

jabraham17
Copy link
Member

Makes most CHPL_* environment variables produce an error if set to an invalid value. This can help prevent user error when accidentally doing the wrong thing.

For example, a user might misspell something or just misunderstand how to set a variable. Previously, we would just silently take that value and maybe break in expected ways later. Now, we refuse to accept it and tell the user exactly what they did wrong

Previously,

export CHPL_LLVM=ssystem
make # error, cannot find Makefile.include-ssystem

Now,

export CHPL_LLVM=ssystem
make # Error: CHPL_LLVM=ssystem is not valid, CHPL_LLVM must be none, bundled, or system

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