YCM-Generator icon indicating copy to clipboard operation
YCM-Generator copied to clipboard

deal with cd during build

Open proudzhu opened this issue 11 years ago • 2 comments

Some projects may change directory during build, is it possible to deal with such situation. For example, https://github.com/xiph/speexdsp, ycm_generator will generate flags like '-I../include' as it change directory to libspeexdsp during build, but it should be '-I./include'.

proudzhu avatar Jul 23 '15 09:07 proudzhu

This is going to be slightly tricky - it means that the working directory needs to be logged, and that -I needs to have special treatment to resolve relative paths appropriately.

It's also worth noting this only appears to affect a minority of autotools projects (AFAICT), and that a partial workaround is to use --out-of-tree.

This is a fairly minor bug (it's easy enough to fix the generated flags) that only affects a few projects, so it'll have a fairly low priority. I'll try and get around to it at some point, but as I'm going to be quite busy over the next week or two I can't make any guarantees.

rdnetto avatar Jul 23 '15 12:07 rdnetto

Thanks, --out-of-tree works

proudzhu avatar Jul 23 '15 12:07 proudzhu