-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[cpp] How to extract only part of files when creating database #16237
Comments
Hi @lianxv-primer, I would strongly recommend against doing anything like this, as some security problems may depend on the ability to analyse dataflow through some of your third-party libraries. This will no longer be possible when those libraries are not present in the database. If you really do want to do this, and your build system supports incrementally rebuilding the source code, then you could try to attempt the following (note that we in no way support this):
|
ok , this sounds like a solution when have to do this.
is it something wrong ? |
This even happens when you delete the database directory, before doing the third step? |
No, directly rebuild all project. ... |
I don't understand the answer. Did you delete the database directory immediately before running |
yes, I delete the database directory before running |
Thanks for confirming. This means the approach is suggested apparently doesn't work in your case. Note that, as the approach is not supported, I cannot do much more for you here. |
I haven’t using the suggested method yet. The log above is the result of my full compilation yesterday. |
Apologies. I misunderstood in that case. Could you open a new issue for that, so we can discuss that separately? |
sure! new issue address:#16239 |
Thanks! |
Our project involves many third-party libraries, what I concerned is the part we write. So I want to extract only party of files when creating database to reduce time costs and size of database.
My database creating command like :
codeql database create C:\test\codeql-database --source-root "E:\test-project-code\src" --language=cpp --command="call build_win_codeql.bat" --threads=0 --verbose --overwrite --mode=clear --min-disk-free=100000
I read the docs that we can customize the behavior of extractors by setting extractor configuration. but the cpp extrator options may be none :
"extractor_options" : { }
How can I optimize the database creating commands
The text was updated successfully, but these errors were encountered: