[SERVER-45134] New ninja module yields an empty compdb Created: 13/Dec/19  Updated: 29/Oct/23  Resolved: 13/Jan/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Bug Priority: Major - P3
Reporter: Eric Cox (Inactive) Assignee: Mathew Robinson (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Dev Platform 2020-01-13
Participants:

 Description   

I am trying to generate a compile_commands.json file for rtags, running ninja with -t compdb flag gives,

$ ninja -f new.build.ninja -t compdb core  
[
]



 Comments   
Comment by Githook User [ 10/Jan/20 ]

Author:

{'name': 'Mathew Robinson', 'email': 'mathew.robinson@mongodb.com', 'username': 'chasinglogic'}

Message: SERVER-45134 Generate compile database with Ninja
Branch: master
https://github.com/mongodb/mongo/commit/91b99094e00ee534a4fa12c74c556bd2b21f9930

Comment by Andrew Morrow (Inactive) [ 09/Jan/20 ]

Note that you can work around this by having SCons generate the compilation database:

scons <args> compiledb
scons <args> --ninja new.build.ninja

Comment by Eric Cox (Inactive) [ 13/Dec/19 ]

This happens off of commit 35c4be790c1e03898d9c5443f9a33e36f6f40302 on master

Generated at Thu Feb 08 05:07:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.