- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does anyone know how this option works?
Could you please explain it with a simple example?
Or any suggestion where I can get the help?
Thanks a lot.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Specifies a different top level project directory than was used during compiler instrumentation run to use for relative paths to source files in place of absolute paths.
You would use this if the source files were in a different location when you run codecov than when you collected the data. codecov would then use this as the base for relative path references.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's the exact what I tried. But it seems not working.
(Errors show that source code file could not be found.)
This is why I came here for more suggestion or examples.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In order for the -srcroot substitution to take place, the sources need to be compiled with one of the following options::
-prof-src-root (Linux), /Qprof-src-root (Windows)
-prof-src-root-cwd (Linux), /Qprof-src-root-cwd (Windows)
This compiler option specifies the base directory that is to be treated as the project root directory that can be substituted later.
An example of use is:
C:> ifort -Qprof-gen:srcpos -Qprof-src-root c:\workspaces\orig_project_dir test1.f90 test2.f90
C:> test1.exe
C:> profmerge
C:> cd \workspaces\
C:> mv orig_project_dir new_project_dir
C:> cd new_project_dir\src
C:> codecov -srcroot C:\workspaces\new_project_dir
Now, "C:\workspaces\new_project_dir" will be substituted for "c:\workspaces\orig_project_dir" when looking for the source files.
It looks like the code coverage documentation, needs to cross-reference the compiler -prof-src-root* options for clarifying this.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page