-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add OR operator for option '--with-extra-multilib-test' #1378
Conversation
This patch allows you provide the flags in build flags array acts on arch-abi __respectively__, you can use ',' to separate them. For example: `rv64gcv-lp64d:--param=riscv-autovec-lmul=dynamic,--param=riscv-autovec-preference=fixed-vlmax` will be consider as two target boards same as below: ``` riscv-sim/-march=rv64gcv/-mabi=lp64d/-mcmodel=medlow/--param=riscv-autovec-preference=fixed-vlmax riscv-sim/-march=rv64gcv/-mabi=lp64d/-mcmodel=medlow/--param=riscv-autovec-lmul=dynamic ``` However, you can also leverage AND(`:`), OR(`,`) operator together but the OR(`,`) will always have the higher priority. For example: `rv64gcv-lp64d:--param=riscv-autovec-lmul=dynamic:--param=riscv-autovec-preference=fixed-vlmax,--param=riscv-autovec-lmul=m2` will be consider as tow target boars same as below: ``` riscv-sim/-march=rv64gcv/-mabi=lp64d/-mcmodel=medlow/--param=riscv-autovec-lmul=dynamic/--param=riscv-autovec-preference=fixed-vlmax riscv-sim/-march=rv64gcv/-mabi=lp64d/-mcmodel=medlow/--param=riscv-autovec-lmul=m2 ``` Signed-off-by: Pan Li <[email protected]>
If I understood correctly, then this is not affecting the build, but only testing configurations. E.g. an environment variable I do not think this PR is targeting an invalid use case or is too complex, but I think it is not sufficient to express everything users may want to express to generate these multilib test lists. So we may end up with a PR introducing paratheses support in the future to overcome the limitations introduced by operator priorities... |
Thank you for the comments. Actually, this PR comes from one end-user requirement from #1368, and the AND / OR is somehow idempotent with limited effect to support. I am totally OK if there is an overall solution for this. |
You are right. Since this only affects the @kito-cheng: any preferences? |
I reopened this PR since I closed it by accident. |
Thanks @cmuellner and never mind. Let's wait for @kito-cheng 's comments on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, seems like I missed this somehow
Great, thanks @kito-cheng . |
This patch allows you provide the flags in build flags array acts on arch-abi respectively, you can use ',' to separate them. For example:
will be consider as two target boards same as below:
However, you can also leverage AND(
:
), OR(,
) operator together but the OR(,
) will always have the higher priority. For example:will be consider as tow target boars same as below: