Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect generation with quoted macros #131

Open
Sigmanificient opened this issue Jul 22, 2023 · 0 comments
Open

Incorrect generation with quoted macros #131

Sigmanificient opened this issue Jul 22, 2023 · 0 comments

Comments

@Sigmanificient
Copy link

Hello, when using compiledb on my project, the generated output in incorrect.
In fact, i am getting a "-DPROG_NAME=waffle" isntead of "-DPROG_NAME=\"waffle\"".

[
{
  "directory": "/home/sigmanificient/dev/waffle",
  "arguments": [
   "cc",
   "-MMD",
   "-MP",
   "-O2",
   "-march=native",
   "-iquote",
   "./include",
   "-U_FORTIFY_SOURCE",
   "-DPROG_NAME=waffle",
   "-c",
   "src/cursor_events.c",
   "-o",
   ".build/release/cursor_events.o"
  ],
  "file": "src/cursor_events.c"
 }
]

This makes thinks my lsp, that there is an invalid identifier called "waffle" all around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant