Skip to content

compiledb incorrectly strip quotes. #71

@peter50216

Description

@peter50216

Version: using master at commit 88ec08e
Found this while trying to build kernel with compiledb.

> cat a.log
gcc -DKBUILD_MODNAME='"swap"' ./swap.c

> compiledb --parse a.log
## Processing build commands from a.log
## Writing compilation database with 1 entries to compile_commands.json
## Done.

> cat compile_commands.json
[
 {
  "directory": "/tmp",
  "arguments": [
   "gcc",
   "-DKBUILD_MODNAME=swap",
   "./swap.c"
  ],
  "file": "./swap.c"
 }
]

The single quotes in the argument disappear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions