-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestcontributions-welcomeContributions welcome to help resolve this (the resolution is expected to be clear from the issue)Contributions welcome to help resolve this (the resolution is expected to be clear from the issue)package:native_toolchain_c
Description
We should consider making this package generate compile_commands.json
files.
https://clang.llvm.org/docs/ClangCommandLineReference.html#dependency-file-generation
I think we'd probably want to do this as a side effect of the hook, and only if the sources are not in the pub cache.
We need to do this as a side effect of the hook due to the following:
- The compiler can be passed in by the SDK, and
- Packages depended on can pass in include directories or libraries to be linked via metadata.
Hence, it is not enough to simply have a CBuilder
and run it from a tool/generate_compile_commands_json.dart
.
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestcontributions-welcomeContributions welcome to help resolve this (the resolution is expected to be clear from the issue)Contributions welcome to help resolve this (the resolution is expected to be clear from the issue)package:native_toolchain_c