Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxy-v committed Sep 1, 2024
1 parent 8090cf5 commit d6d6731
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/targets.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ module.exports = (sources) => {
let outputs = [];
console.log(sources);
let commands = JSON.parse(fs.readFileSync('build/compile_commands.json', 'utf8'));
for (let {file, ...rest} of sources) {
for (let el of sources) {
console.log(el);
let { file, lines } = el;
console.log(file);
if (file.endsWith('.cpp') || file.endsWith('.h') || file.endsWith('.c')
|| file.endsWith('.hpp')) {
const idx = commands.findIndex(entry => entry.file.endsWith(file));
Expand Down

0 comments on commit d6d6731

Please sign in to comment.