Post process build output to update relative path to absolute for output filter

Is there a workaround for getting the build/run output filter to match files with relative paths instead of absolute? Any ideas on easiest way to add a step to update the relative path to an absolute path?

I have a large Makefile based project composed of many Makefiles and CMakeLists.txt. The build is kicked off using a bash script. I have two different Run/Debug Configurations based on how I initiate the build, which calls the build script as an external tool. Host OS is a mac. If I call the build script natively on the mac the external tool build output, with relative paths is not parsed and no hyperlinks to files generated. If I call the build script via ssh into a linux vm, the hyperlinks are added properly - even though the paths are also relative. The build output is the same.

Since the build is always done using a bash script I could add any intermediate steps to post-process the output.

To recap, two Build configurations:

1. build.sh → output with relative paths → output filter does not add hyperlinks

2. ssh wrapper script → build.sh → output with relative paths → output filter adds hyperlinks

1

Please sign in to leave a comment.