Project

General

Profile

Actions

Feature #10658

closed

Suggest working source trees automatically

Added by Evgeny Novikov almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
High
Category:
Infrastructure of Core
Target version:
Start date:
01/12/2021
Due date:
% Done:

0%

Estimated time:
Published in build:

Description

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.

Actions #1

Updated by Evgeny Novikov almost 4 years ago

  • Target version set to 3.1

Let's do this in Klever 3.1.

Actions #2

Updated by Evgeny Novikov almost 4 years ago

  • Status changed from New to Resolved

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

Actions #3

Updated by Evgeny Novikov almost 4 years 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.

Actions #4

Updated by Evgeny Novikov almost 4 years 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.

Actions

Also available in: Atom PDF