mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-19 15:10:47 +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'],
|
cc_files = bld.path.ant_glob(['**/*.cpp', '**/*.cc'],
|
||||||
excl=['libcxx/*', '*tests/*', 'third_party/*'])
|
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(
|
bld.program(
|
||||||
source=cc_files,
|
source=cc_files,
|
||||||
cxxflags=['-O3', '-std=c++11', '-Wall'],
|
cxxflags=['-O3', '-std=c++11', '-Wall'],
|
||||||
@ -95,10 +103,7 @@ def build(bld):
|
|||||||
'third_party/rapidjson/include',
|
'third_party/rapidjson/include',
|
||||||
'third_party/sparsehash/src',
|
'third_party/sparsehash/src',
|
||||||
CLANG_INCLUDE_DIR],
|
CLANG_INCLUDE_DIR],
|
||||||
lib=[
|
lib=lib,
|
||||||
'clang',
|
|
||||||
'rt',
|
|
||||||
'pthread'],
|
|
||||||
libpath=[CLANG_LIB_DIR],
|
libpath=[CLANG_LIB_DIR],
|
||||||
rpath=[CLANG_LIB_DIR],
|
rpath=[CLANG_LIB_DIR],
|
||||||
target='app')
|
target='app')
|
||||||
|
Loading…
Reference in New Issue
Block a user