aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/clangtool/clangtool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/clangtool/clangtool.go b/pkg/clangtool/clangtool.go
index c0c834e2d..fe4baf524 100644
--- a/pkg/clangtool/clangtool.go
+++ b/pkg/clangtool/clangtool.go
@@ -160,7 +160,7 @@ func runTool[Output any, OutputPtr OutputDataPtr[Output]](cfg *Config, dbFile, f
// version that produces more warnings.
// Comments are needed for codesearch tool, but may be useful for declextract
// in the future if we try to parse them with LLMs.
- cmd := exec.Command(os.Args[0], "-p", dbFile,
+ cmd := exec.Command(osutil.Abs(os.Args[0]), "-p", dbFile,
"--extra-arg=-w", "--extra-arg=-fparse-all-comments", file)
cmd.Dir = cfg.KernelObj
// This tells the C++ clang tool to execute in a constructor.