misc-linux-fixes

This commit is contained in:
Jacob Dufault 2017-03-27 18:04:37 -07:00
parent 876296d62f
commit a8a343420b
4 changed files with 8 additions and 2 deletions

View File

@ -332,6 +332,7 @@ void QueryDbMainLoop(
std::string path = msg->project_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) {
const CompilationEntry& entry = project->entries[i];
std::string filepath = entry.filename;

View File

@ -1,6 +1,7 @@
#include "message_queue.h"
#include <cassert>
#include <cstring>
#include <functional>
#include <iostream>
#include <thread>

View File

@ -93,7 +93,7 @@ struct PlatformSharedMemoryLinux : public PlatformSharedMemory {
PROT_READ | PROT_WRITE, MAP_SHARED, fd_, 0 /*offset*/));
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;
}

View File

@ -89,7 +89,11 @@ def build(bld):
bld.program(
source=cc_files,
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'],
libpath=[CLANG_LIB_DIR],
rpath=[CLANG_LIB_DIR],