Hi,

If I have a standard Tupfile which calls clang on a bunch of .cpp files:

: foreach *.cpp |> clang++ -g -O0 -Wall -std=c++11 -c %f -o %o |> %B.o
: *.o |> clang++ %f -o %o |> main

Now I want to call 'bear' on it, which creates a file based on the output 
of clang called "compile_commands.json". To use it you just prepend your 
clang call with 'bear --':

: foreach *.cpp |> bear -- clang++ -g -O0 -Wall -std=c++11 -c %f -o %o |> 
%B.o
: *.o |> clang++ %f -o %o |> main

However I now get the error:

* 1) bear -- clang++ -g -O0 -Wall -std=c++11 -c main.cpp -o main.o         
                                                                            
 *** tup errors ***
tup error: File 'compile_commands.json' was written to, but is not in 
.tup/db. You probably should specify it as an output
 *** Command ID=47 ran successfully, but tup failed to save the 
dependencies.

How do I get tup to recognise this file as an output?

Thanks,

Laurence

-- 
-- 
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to