[rb-general] BUILD_PATH_PREFIX_MAP code examples and test cases
infinity0 at debian.org
Tue Mar 14 15:53:00 CET 2017
> I am surprised at your choice of ordering of the key/value pairs. I
> would expect that most producers will have in their head a list like
> Your ordering means that such a producer must make a map specifying
> This seems unnaturla.
> Or to put it another way: normally, the actual paths will vary, and
> the replacement tokens will be fixed. = normally has the more-fixed
> thing on the left.
> So I think you should swap the order of the pairs.
Hi, sorry I missed this the first time around.
This is a pretty good idea, which is slightly annoying for me because it's going to take a fair bit of effort to change all the writing and the code and the test cases. But I think I'll do it.
It does make reproducible builds "look" more obviously like the primary purpose of this, which is of course a good thing. And perhaps it helps shift people's perspective away from "we are fiddling with debug paths" to "we are describing how to achieve reproducible builds".
(The ordering is reversed currently because GCC has the debug-prefix-map option like that, and joining them up was "the obvious way" of doing it.)
More information about the rb-general