-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix compile_flags.txt to include correct paths
- Loading branch information
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Development | ||
|
||
## Compile flags | ||
|
||
In order to fix Intellisense issues in VSCode and several other IDEs related to missing header files in C++ dependencies such as `ada-url` and `simdutf`, you need to generate a `compile_commands.json` document. Follow the steps below to fix the issue: | ||
|
||
1. Install `gen-compile-commands` | ||
|
||
```sh | ||
cargo install --git https://github.com/mikea/gen-compile-commands` | ||
``` | ||
|
||
2. Generate `compile_commands.json` | ||
|
||
```sh | ||
gen-compile-commands --root . --compile-flags compile_flags.txt --out compile_commands.json --src-dir ./src | ||
``` |