How to compile sqlite with gcov support?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to compile sqlite with gcov support?

Xingwei Lin
Hi,

I decompressed the sqlite-autoconf-3310100.tar.gz and compiled it with the
following commands:

```
cd sqlite-autoconf-3310100
CFLAGS="-g -ftest-coverage -fprofile-arcs" ./configure --enable-fts3
--enable-debug --enable-session
make -j$(nproc)
```

But when I completed the building process, I didn't find the .gcno file.
And when I execute sqlite3, it also didn't occur the  .gcda files.

--
Best regards,
Xingwei Lin
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Reply | Threaded
Open this post in threaded view
|

Re: How to compile sqlite with gcov support?

Xingwei Lin
When I deleted the --enable-debug flag, the .gcno file can be generated.

Not sure why the --enable-debug flag will influence gcov compilation.

On Tue, Feb 18, 2020 at 3:16 PM Xingwei Lin <[hidden email]> wrote:

> Hi,
>
> I decompressed the sqlite-autoconf-3310100.tar.gz and compiled it with the
> following commands:
>
> ```
> cd sqlite-autoconf-3310100
> CFLAGS="-g -ftest-coverage -fprofile-arcs" ./configure --enable-fts3
> --enable-debug --enable-session
> make -j$(nproc)
> ```
>
> But when I completed the building process, I didn't find the .gcno file.
> And when I execute sqlite3, it also didn't occur the  .gcda files.
>
> --
> Best regards,
> Xingwei Lin
>


--
Best regards,
Xingwei Lin
_______________________________________________
sqlite-users mailing list
[hidden email]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users