Skip to content

Commit

Permalink
add compiler_commands generator
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBearodactyl committed May 19, 2024
1 parent b31946b commit af88f20
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions scripts/gen_compile_commands_for_nvim.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
geode.exe build -p android64 | Out-Null

if (Test-Path -Path .\build-android64) {
Write-Host "Generated android64 build files"
}

cmake -A win32 -B build | Out-Null

if (Test-Path -Path .\build) {
Write-Host "Generated win32 build files"
}

if (Test-Path -Path .\build-android64\compile_commands.json && Test-Path -Path .\build\ && Test-Path -Path .\build\compile_commands.json -ErrorAction Stop) {
Copy-Item -Path .\build-android64\compile_commands.json -Destination .\build\ -Force
}

Remove-Item -Recurse -Force -Path .\build-android64\

if (Test-Path -Path .\build\compile_commands.json) {
Write-Host " Successfuly generated compile_commands.json"
Write-Host "-----------------------------------------------"
Write-Host "NeoVim should now be 100% compatible with Geode"
}

0 comments on commit af88f20

Please sign in to comment.