mirror of
https://github.com/MaskRay/ccls.git
synced 2025-01-19 12:05:50 +00:00
misc-linux-fixes
This commit is contained in:
parent
876296d62f
commit
a8a343420b
@ -332,6 +332,7 @@ void QueryDbMainLoop(
|
|||||||
std::string path = msg->project_path;
|
std::string path = msg->project_path;
|
||||||
|
|
||||||
project->entries = LoadCompilationEntriesFromDirectory(path);
|
project->entries = LoadCompilationEntriesFromDirectory(path);
|
||||||
|
std::cerr << "Loaded compilation entries (" << project->entries.size() << " files)" << std::endl;
|
||||||
for (int i = 0; i < project->entries.size(); ++i) {
|
for (int i = 0; i < project->entries.size(); ++i) {
|
||||||
const CompilationEntry& entry = project->entries[i];
|
const CompilationEntry& entry = project->entries[i];
|
||||||
std::string filepath = entry.filename;
|
std::string filepath = entry.filename;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#include "message_queue.h"
|
#include "message_queue.h"
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <cstring>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
@ -93,7 +93,7 @@ struct PlatformSharedMemoryLinux : public PlatformSharedMemory {
|
|||||||
PROT_READ | PROT_WRITE, MAP_SHARED, fd_, 0 /*offset*/));
|
PROT_READ | PROT_WRITE, MAP_SHARED, fd_, 0 /*offset*/));
|
||||||
capacity = size;
|
capacity = size;
|
||||||
|
|
||||||
std::cout << "Open shared memory name=" << name << ", fd=" << fd_
|
std::cerr << "Open shared memory name=" << name << ", fd=" << fd_
|
||||||
<< ", shared=" << data << ", capacity=" << capacity << std::endl;
|
<< ", shared=" << data << ", capacity=" << capacity << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
6
wscript
6
wscript
@ -89,7 +89,11 @@ def build(bld):
|
|||||||
bld.program(
|
bld.program(
|
||||||
source=cc_files,
|
source=cc_files,
|
||||||
cxxflags=['-std=c++11', '-Wall'],
|
cxxflags=['-std=c++11', '-Wall'],
|
||||||
includes=['third_party/rapidjson/include', CLANG_INCLUDE_DIR],
|
includes=[
|
||||||
|
'third_party/',
|
||||||
|
'third_party/doctest/',
|
||||||
|
'third_party/rapidjson/include',
|
||||||
|
CLANG_INCLUDE_DIR],
|
||||||
lib=['clang', 'rt', 'pthread'],
|
lib=['clang', 'rt', 'pthread'],
|
||||||
libpath=[CLANG_LIB_DIR],
|
libpath=[CLANG_LIB_DIR],
|
||||||
rpath=[CLANG_LIB_DIR],
|
rpath=[CLANG_LIB_DIR],
|
||||||
|
Loading…
Reference in New Issue
Block a user