[CRIU] [PATCH 3/5] protobuf: Add include/protobuf symlink

Pavel Emelyanov xemul at parallels.com
Tue Feb 5 18:38:46 EST 2013


On 02/06/2013 02:29 AM, Cyrill Gorcunov wrote:
> On Wed, Feb 06, 2013 at 02:21:51AM +0400, Pavel Emelyanov wrote:
>> On 02/06/2013 12:04 AM, Cyrill Gorcunov wrote:
>>>
>>> This will allow us to lookup for protobuf
>>> headers by relative
>>>
>>> 	#include "protobuf/some-file.h"
>>>
>>> instead of jumping over directory as we do now
>>>
>>> 	#include "../protobuf/some-file.h"
>>
>> Why not feed the proper -I option to gcc instead?
> 
> We can do that, but it makes code less readable I think,
> because we will have to delete ".." part anyway and add
> -Icrtools/ as path for lookup which I find _very_ strange.

What's wrong with that? All (_ALL_) sources will have
#include "protobuf/xxx.h"

> In turn, when we use include/protobuf symlink, the standart
> "crtools/include" directory is involved into lookup which I
> found pretty convenient and just right.
> 
> Finlly my idea is to left only two directories for headers
> 
> 	crtools/include
> 	crtools/arch/ARCH/include/asm
> 
> and that's all. But it requires some more cleanup works
> since at moment all things are too interweaved.
> .
> 




More information about the CRIU mailing list