Move compile_commands.json to build directory
This commit is contained in:
parent
084671b26e
commit
b408abe304
3
.gitignore
vendored
3
.gitignore
vendored
@ -9,8 +9,6 @@
|
|||||||
/build/
|
/build/
|
||||||
/linux-package/
|
/linux-package/
|
||||||
/kitty.app/
|
/kitty.app/
|
||||||
/compile_commands.json
|
|
||||||
/link_commands.json
|
|
||||||
/glad/out/
|
/glad/out/
|
||||||
/kitty/launcher/kitt*
|
/kitty/launcher/kitt*
|
||||||
/tools/cmd/at/*_generated.go
|
/tools/cmd/at/*_generated.go
|
||||||
@ -22,5 +20,6 @@ __pycache__/
|
|||||||
/docs/generated/
|
/docs/generated/
|
||||||
/.mypy_cache
|
/.mypy_cache
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
.cache
|
||||||
bypy/b
|
bypy/b
|
||||||
bypy/virtual-machines.conf
|
bypy/virtual-machines.conf
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
#include <xlocale.h>
|
#include <xlocale.h>
|
||||||
|
|
||||||
static PyObject*
|
static PyObject*
|
||||||
user_cache_dir() {
|
user_cache_dir(void) {
|
||||||
static char buf[1024];
|
static char buf[1024];
|
||||||
if (!confstr(_CS_DARWIN_USER_CACHE_DIR, buf, sizeof(buf) - 1)) return PyErr_SetFromErrno(PyExc_OSError);
|
if (!confstr(_CS_DARWIN_USER_CACHE_DIR, buf, sizeof(buf) - 1)) return PyErr_SetFromErrno(PyExc_OSError);
|
||||||
return PyUnicode_FromString(buf);
|
return PyUnicode_FromString(buf);
|
||||||
|
|||||||
@ -60,7 +60,7 @@ cache_size(const GraphicsManager *self) { return disk_cache_total_size(self->dis
|
|||||||
|
|
||||||
|
|
||||||
GraphicsManager*
|
GraphicsManager*
|
||||||
grman_alloc() {
|
grman_alloc(void) {
|
||||||
GraphicsManager *self = (GraphicsManager *)GraphicsManager_Type.tp_alloc(&GraphicsManager_Type, 0);
|
GraphicsManager *self = (GraphicsManager *)GraphicsManager_Type.tp_alloc(&GraphicsManager_Type, 0);
|
||||||
self->images_capacity = self->capacity = 64;
|
self->images_capacity = self->capacity = 64;
|
||||||
self->images = calloc(self->images_capacity, sizeof(Image));
|
self->images = calloc(self->images_capacity, sizeof(Image));
|
||||||
|
|||||||
2
setup.py
2
setup.py
@ -667,7 +667,7 @@ class CompilationDatabase:
|
|||||||
|
|
||||||
def __enter__(self) -> 'CompilationDatabase':
|
def __enter__(self) -> 'CompilationDatabase':
|
||||||
self.all_keys: Set[CompileKey] = set()
|
self.all_keys: Set[CompileKey] = set()
|
||||||
self.dbpath = os.path.abspath('compile_commands.json')
|
self.dbpath = os.path.abspath(os.path.join('build', 'compile_commands.json'))
|
||||||
self.linkdbpath = os.path.join(os.path.dirname(self.dbpath), 'link_commands.json')
|
self.linkdbpath = os.path.join(os.path.dirname(self.dbpath), 'link_commands.json')
|
||||||
try:
|
try:
|
||||||
with open(self.dbpath) as f:
|
with open(self.dbpath) as f:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user