[cfe-users] question on the compilation database

Maurizio Vitale via cfe-users cfe-users at lists.llvm.org
Sat May 13 07:32:03 PDT 2017


we're planning for a tool that generates a clang compilation database from
our byzantine build system.

file.gen: file.src
    cp file.src file.gen

exe: file.o
    gcc -o exe file.o

file.o:


[
  { "directory": "/home/user/llvm/build",
    "command": "/usr/bin/clang++ -Irelative -DSOMEDEF=\"With spaces,
quotes and \\-es.\" -c -o file.o file.cc",
    "file": "file.cc" },
  ...]


[
  { "directory": "/home/user/llvm/build",
    "command": "/usr/bin/clang++ -Irelative -DSOMEDEF=\"With spaces,
quotes and \\-es.\" -c -o file.o file.cc",
    "file": "file.cc" },
  ...]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20170513/8b3fe0df/attachment.html>


More information about the cfe-users mailing list