mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 09:05:10 +00:00
Fix build on OSX, update README.md
This commit is contained in:
parent
2462d5a1ba
commit
121336c976
@ -32,10 +32,11 @@ in the `vscode-client` folder.
|
||||
# Build cquery
|
||||
$ git clone https://github.com/jacobdufault/cquery --recursive
|
||||
$ cd cquery
|
||||
$ pushd third_party/sparsehash # This step will eventually be eliminated
|
||||
$ ./configure # This step will eventually be eliminated
|
||||
# sparsehash is header-only; building it is not required
|
||||
$ popd # This step will eventually be eliminated
|
||||
# Note: In the future we should not have to build sparsehash explicitly.
|
||||
$ pushd third_party/sparsehash
|
||||
$ ./configure
|
||||
$ make
|
||||
$ popd
|
||||
$ ./waf configure
|
||||
$ ./waf build
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <dirent.h>
|
||||
#include <sys/types.h> // required for stat.h
|
||||
#include <sys/stat.h> // no clue why required -- man pages say so
|
||||
|
||||
@ -29,7 +30,9 @@
|
||||
#include <sys/stat.h> /* For mode constants */
|
||||
#include <fcntl.h> /* For O_* constants */
|
||||
|
||||
#ifndef __APPLE__
|
||||
#include <sys/prctl.h>
|
||||
#endif
|
||||
|
||||
struct PlatformMutexLinux : public PlatformMutex {
|
||||
sem_t* sem_ = nullptr;
|
||||
@ -155,7 +158,9 @@ bool TryMakeDirectory(const std::string& absolute_path) {
|
||||
}
|
||||
|
||||
void SetCurrentThreadName(const std::string& thread_name) {
|
||||
#ifndef __APPLE__
|
||||
prctl(PR_SET_NAME, thread_name.c_str(), 0, 0, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
std::vector<std::string> GetPlatformClangArguments() {
|
||||
|
Loading…
Reference in New Issue
Block a user