Feature #10658

Suggest working source trees automatically

Added by Evgeny Novikov 3 months ago. Updated about 1 month ago.

Infrastructure of Core
Target version:
Start date:
Due date:
% Done:


Estimated time:
Published in build:


Working source trees allow to show and to use relative paths to source and object files. Unfortunately, they cannot be determined automatically in the general case but it seems that we can consider minimal common parts of paths to input/output files to compilation commands as a first approximation of them. Most likely, it will be enough for most projects.


Updated by Evgeny Novikov 3 months ago

  • Target version set to 3.1

Let's do this in Klever 3.1.


Updated by Evgeny Novikov about 2 months ago

  • Status changed from New to Resolved

I implemented the suggested approach in branch update-clade. Let's hope that it will be useful.


Updated by Evgeny Novikov about 2 months ago

I made some improvements and fixes in the same branch. Now files from "/tmp" are ignored as they most likely do not correspond to original source and object files of programs. Also, if one of resulting working source trees is a common prefix for other ones, just it is considered as a working source tree. This is necessary to avoid most ambiguities.


Updated by Evgeny Novikov about 1 month ago

  • Status changed from Resolved to Closed

Tests were passed, so, I merged the branch to master in b0ec6ed82. After update you can try not to specify working source trees for (re-)generated build bases - Klever will suggest them itself.

Also available in: Atom PDF