[Dune-devel] JIT compiling of python code uses wrong compile_commands
Christian Engwer
christian.engwer at uni-muenster.de
Thu Apr 3 22:39:24 CEST 2025
> Can anyone tell me how this |compile_commands.json| file is generated? I am
> trying to figure out why it does not include all the include directories of
> the modules involved.
if this is the "usual" compile_commands.json, then it is generated by cmake:
https://cmake.org/cmake/help/latest/variable/CMAKE_EXPORT_COMPILE_COMMANDS.html
The flag is set explicitly for dune-py, see python/dune/generator/cmakebuilder.py.
I would assume that the recent buildsystem changes (disabling all
kinds of parameters by default and only adding them per target) may
have induced the problems...
Up to now dune-py uses `dune_enable_all_packages`, see python/dune/generator/template/CMakeLists.txt.template
but if I understand the recent changes correctly, this is not sufficient anymore, right?!
Best
Christian
More information about the Dune-devel
mailing list