mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-16 13:48:04 +00:00
more portable wscript
This commit is contained in:
parent
7f4918ab15
commit
f158f759b1
13
wscript
13
wscript
@ -86,6 +86,14 @@ def build(bld):
|
||||
|
||||
cc_files = bld.path.ant_glob(['**/*.cpp', '**/*.cc'],
|
||||
excl=['libcxx/*', '*tests/*', 'third_party/*'])
|
||||
|
||||
lib = ['clang']
|
||||
if sys.platform == 'linux' or sys.platform == 'linux2':
|
||||
lib.append('rt')
|
||||
lib.append('pthread')
|
||||
elif sys.platform == 'darwin':
|
||||
lib.append('pthread')
|
||||
|
||||
bld.program(
|
||||
source=cc_files,
|
||||
cxxflags=['-O3', '-std=c++11', '-Wall'],
|
||||
@ -95,10 +103,7 @@ def build(bld):
|
||||
'third_party/rapidjson/include',
|
||||
'third_party/sparsehash/src',
|
||||
CLANG_INCLUDE_DIR],
|
||||
lib=[
|
||||
'clang',
|
||||
'rt',
|
||||
'pthread'],
|
||||
lib=lib,
|
||||
libpath=[CLANG_LIB_DIR],
|
||||
rpath=[CLANG_LIB_DIR],
|
||||
target='app')
|
||||
|
Loading…
Reference in New Issue
Block a user