Monkeypatching filter() to support block scoping #2266
richard-sim
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
That's pretty cool, I wonder if we could have something like this for all containers. Seems like it's something we would be able to support without breaking compatibility, so might be worth investigating further. And could get us closer to Premake 6 idealized syntax. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After one too many dangling
filter()
calls resulting in hard-to-track-down bugs, I decided to see what I could do about patchingfilter()
to bring some of the premake-6 promised land to premake5. And... it's GLORIOUS!This patch still supports the "legacy" style filter usage, so is a drop-in fix for your own premake scripts while not breaking 3rd party libraries (or your own that you haven't ported to the block-scoped style yet).
Usage:
Beta Was this translation helpful? Give feedback.
All reactions