[cfe-users] question on the compilation database

2017-05-13 Thread Maurizio Vitale via cfe-users
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" },
  ...]
___
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


Re: [cfe-users] question on the compilation database

2017-05-13 Thread Maurizio Vitale via cfe-users
sorry, gmail misinterpreted my finger motions

On Sat, May 13, 2017 at 10:32 AM, Maurizio Vitale  wrote:

> 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" },
>   ...]
>
>
___
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users