Page MenuHomeFreeBSD

Allow per-file lex and yacc options.
ClosedPublic

Authored by bz on Nov 12 2019, 10:01 PM.
Tags
None
Referenced Files
F151135019: D22337.id64251.diff
Mon, Apr 6, 8:03 AM
Unknown Object (File)
Sat, Apr 4, 7:06 AM
Unknown Object (File)
Sat, Apr 4, 1:32 AM
Unknown Object (File)
Sat, Apr 4, 1:31 AM
Unknown Object (File)
Dec 12 2025, 1:43 AM
Unknown Object (File)
Dec 11 2025, 12:16 AM
Unknown Object (File)
Nov 27 2025, 10:12 PM
Unknown Object (File)
Nov 26 2025, 9:09 PM
Subscribers

Details

Summary

In order to allow software with multiple (different) options
for lex and yacc add extra per-file options to the calls.
This is especially useful when one .l file needs -Pprefix.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 27480
Build 25712: arc lint + arc unit

Event Timeline

share/mk/bsd.dep.mk
111

We have CFLAGS.${SRC} elsewhere. why _ here instead of .?

share/mk/bsd.dep.mk
111

I think I looked at FILES*_<> family which uses an underscore. You lost that naming game already a while ago. Sorry.
Would you prefer me to switch to '.'?

share/mk/bsd.dep.mk
111

I'd prefer that. The FILES_ stuff is different, since it's more of a thing to itself. People will find it weird that LFLAGS_foo.c += blah and then CFLAGS.foo.c += bar in the next line.

Rename FOO_<> to FOO.<> as requested by @imp.

bz marked 2 inline comments as done.Nov 12 2019, 11:39 PM
This revision is now accepted and ready to land.Nov 13 2019, 2:21 AM
This revision was automatically updated to reflect the committed changes.