Repository navigation
Get rid of gperf postprocessing - #443
ivan-volnov wants to merge 2 commits into
Conversation
Did you try with gperf < 3.1 (as it says) ? EDIT: tested this PR with 3.0.4, worked ok... |
afbjorklund
left a comment
There was a problem hiding this comment.
Looks good to me, most likely this would fix the issues on MSYS2 as well (the perl hacks fail there)
Yes, I tried it with 3.0.3 and 3.0.4 |
|
Thanks for the suggestion! I appreciate making things easier. In this case, however, removing the mechanism for adding item numbers makes it harder for the developer, not easier. It was deliberately added recently: 3ff1d5a Instead I think that we should just get rid of the gperf altogether. It's a cool concept, but it's apparent that it's too much of a hassle for little gain. I'm currently working on C++-ifying the source code (not rewriting, only compiling the current code as C++ and making it possible to use C++ for new code and to slowly convert old code). I plan to address the lookup tables as part of that. Stay tuned. @ivan-volnov: By the way, maybe you would like to join the ccache gitter room to discuss ccache development informally? |
Oh, I see now. But I suppose it really adds more harm than benefit. Consider this fix to be applied before removing gperf completely.
I couldn't agree more.
That would be great!
Yes, sure. |
Right, I do remember those merges from hell. Working on several features, you have to renumber... |
Sounds like the worst of both worlds, but maybe there is some hidden benefit to compiling C as C++ |
|
@ivan-volnov wrote:
Not sure I understand. What's the harm more specifically? @afbjorklund wrote:
Exactly, 3ff1d5a was made for you. 🙂 @afbjorklund wrote:
Here's why: C++-ifying in the sense converting all C code to C++ idioms in one go is just not feasible. To be able to convert little by little, I want to be able to call new C++ code from old C code, and that won't work if the old code is compiled as C (unless exposing extern "C" interfaces for all new C++ code, but that way lies madness). |
|
This is obsolete as of 728acfa so closing. |
A trying to make things easier. Gperf postprocessing isn't necessary.