Closed Bug 1607204 Opened 6 years ago Closed 6 years ago

Invalid command line in compile_commands.json

Categories

(Firefox Build System :: General, defect, P3)

defect

Tracking

(firefox74 fixed)

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: calixte, Assigned: rstewart)

References

Details

(Keywords: in-triage)

Attachments

(2 files, 3 obsolete files)

In compile_commands.json, I get:

{
"directory": "/home/calixte/dev/mozilla/mozilla-central.hg/obj-x86_64-pc-linux-gnu/netwerk/srtp/src", 
"command": "... '-DPACKAGE_STRING=\"libsrtp2' '2.2.0-pre\"' '-DPACKAGE_VERSION=\"2.2.0-pre\"' ...", 
"file": "/home/calixte/dev/mozilla/mozilla-central.hg/obj-x86_64-pc-linux-gnu/netwerk/srtp/src/Unified_c_netwerk_srtp_src0.c"
}

I think this is incorrect and it should be '-DPACKAGE_STRING=\"libsrtp2 2.2.0-pre\"'.
This option is defined here:
https://searchfox.org/mozilla-central/source/netwerk/srtp/src/moz.build#40
And for any reason, the argument is splitted around space.

Keywords: in-triage
Priority: -- → P3
Assignee: nobody → rstewart
Attached file diff compile_command.json (obsolete) —

See the attached diff in compile_commands.json with my patch. I think this looks right?

Attachment #9119554 - Attachment is obsolete: true
Attached file diff compile_command.json (obsolete) —
Attachment #9119562 - Attachment is obsolete: true
Pushed by rstewart@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/25964226853a Invalid command line in compile_commands.json r=froydnj
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
Regressions: 1610471
Status: RESOLVED → REOPENED
Flags: needinfo?(rstewart)
Resolution: FIXED → ---
Target Milestone: mozilla74 → ---
Attachment #9119555 - Attachment description: Bug 1607204 - Invalid command line in compile_commands.json → Bug 1607204 - Fix invalid command line in compile_commands.json
Attachment #9120208 - Attachment is obsolete: true
Flags: needinfo?(rstewart)

Would it be possible to have a unit test on this too?
thanks

Pushed by rstewart@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/84891824f497 Fix invalid command line in compile_commands.json r=froydnj
Blocks: 1611515
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: