Skip to content

blacktop/ccpaths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fallback logo

Update compile_commands.json source code paths


Why? 🤔

Simple utility to fix a common annoyance with building a compile_commands.json in a CI server and then trying to use it locally.

Getting Started

Install

go install github.com/blacktop/ccpaths@latest

Or download the latest release

Running

To replace all the source paths in the JSON with the corrected local paths

❱ ccpaths compile_commands.json /path/to/target /path/in/db

Example

git clone https://github.com/apple-oss-distributions/xnu.git ~/dev/apple/xnu
cd ~/dev/apple/xnu
wget https://github.com/blacktop/darwin-xnu-build/releases/download/v15.4/xnu-15.4-jsondb.zip
unzip xnu-15.4-jsondb.zip
rm xnu-15.4-jsondb.zip
ccpaths compile_commands.json /Users/runner/work/darwin-xnu-build/darwin-xnu-build ~/dev/apple

License

MIT Copyright (c) 2025 blacktop

About

Update compile_commands.json source code paths

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •