-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[gn] Use exec_script_allowlist in //llvm/utils/gn/.gn #134172
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
Conversation
Use exec_script_allowlist in //llvm/utils/gn/.gn GN is moving to use exec_script_allowlist instead of exec_script_whitelist everywhere. See crbug.com/389986807
Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it is probably because you do not have write permissions for the repository. In which case you can instead tag reviewers by name in a comment by using If you have received no comments on your PR for a week, you can request a review by "ping"ing the PR by adding a comment “Ping”. The common courtesy "ping" rate is once a week. Please remember that you are asking for valuable time from other developers. If you have further questions, they may be answered by the LLVM GitHub User Guide. You can also ask questions in a comment on this PR, on the LLVM Discord or on the forums. |
I see the new spelling was added in January (https://gn.googlesource.com/gn/+/ed1abc107815210dc66ec439542bee2f6cbabc00), so this requires a fairly recent version of gn. I don't know if that's a problem for people or not. Anyway, @nico knows the gn build best. |
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.
lg, but please give me a bit to update the bots.
Do you want to update the comment right above too?
Could you also update
assert(gn_version >= 1693, |
Another idea could be to assign to one or the other depending on gn_version
.
But I think fairly few people use this build, and it's fairly easy to update GN (just run llvm/utils/gn/get.py
), so I think it's fine to just require a new(ish) version of GN.
Remove version check from utils/gn/build/toolchain/BUILD.gn
Add a gn_version check in the llvm/util/gn/.gn dotfile, to ensure we have a new enough version of GN.
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.
Thanks, looks great! I'll land this some time today, after making sure my bots have a new-enough GN.
(Looks like this wasn't done yet.) |
whoops, missed an "allowing" reference.
Whoops. Fixed. |
@dpranke Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our build bots. If there is a problem with a build, you may receive a report in an email or a comment on this PR. Please check whether problems have been caused by your change specifically, as the builds can include changes from many authors. It is not uncommon for your change to be included in a build that fails due to someone else's changes, or infrastructure issues. How to do this, and the rest of the post-merge process, is covered in detail here. If your change does cause a problem, it may be reverted, or you can revert it yourself. This is a normal part of LLVM development. You can fix your changes and open a new PR to merge them again. If you don't get any reports, no action is required from you. Your changes are working as expected, well done! |
Hm, looks like the assert runs too late. On a machine where I hadn't bumped GN yet, I'm getting
Ah well. If anyone runs into this, running |
Yeah, the dotfile is processed before the other files, so I'm not surprised. |
This requires gn_version >= 2207. Run llvm/utils/gn/get.py to update your GN binary if you hit the assert added in this commit.
Use exec_script_allowlist in //llvm/utils/gn/.gn
GN is moving to use exec_script_allowlist instead of exec_script_whitelist everywhere.
See crbug.com/389986807