Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a4885db
Use UTF-8 as the system encoding on VxWorks
hliu0 Nov 23, 2018
07f8be4
adapt posix module to vxWorks
wyxin1008 Nov 30, 2018
8e99c87
limited signal feilds in VxWorks
kuhlenough Sep 17, 2017
846db09
Support build python interpreter on VxWorks
jianxu3 Dec 4, 2018
c7a6d61
Support build python interpreter on VxWorks
jianxu3 Dec 4, 2018
46b2711
Use UTF-8 encoding and add return value for function
hliu0 Dec 4, 2018
95581c5
chmod the script configure to be executable
pxinwr Dec 10, 2018
e402833
Revert the changes for aclocal.m4 and configure.ac to adpat the new c…
jianxu3 Dec 11, 2018
42549fe
generate configure file using command autoconf
jianxu3 Dec 12, 2018
871eadb
add the support for spawnv() and spawnve() for vxworks (US120029)
yuesun1 Dec 11, 2018
cd02377
Add vxworks PLATFORM_TRIPLET and enable share library EXT_SUFFIX
LihuaZhao Dec 19, 2018
2c1394b
Add clang support for setup.py to get include and library path
LihuaZhao Dec 18, 2018
0ed5ced
add the posixmodule.c.h for spawnv() (US129972)
yuesun1 Dec 27, 2018
646cbaa
VxWorks uses semicolon as delim
hliu0 Dec 27, 2018
dcb4eda
add VxWorks Compatibility Wrapper
wyxin1008 Dec 27, 2018
317172c
fixed the select call is blocked by pipe
wyxin1008 Jan 14, 2019
dc83596
not build module grp and termios on VxWorks (US130019)
jianxu3 Jan 14, 2019
8fbdd91
module _crypt use api in libopenssl.so (US130019)
jianxu3 Jan 17, 2019
8579a4b
fixed test_time.py testcase fail problem (US130064)
jianxu3 Jan 17, 2019
176eb20
add preexec_fn support in subprocess for VxWorks
wyxin1008 Jan 25, 2019
a84a6bf
module _socket add dependence on libnet (US130019)
jianxu3 Jan 25, 2019
b28835a
add py_fds_to_keep and close_fds parameter suppport
wyxin1008 Jan 31, 2019
31512a4
add float point flag for spawn a new RTP
wyxin1008 Feb 14, 2019
75db11e
skip the ExecTests test cases in test_os.py
yuesun1 Feb 18, 2019
1e63c53
clinic update for posixmodule.c
pxinwr Feb 20, 2019
a0e7297
clinic update for _vxwapi.c
pxinwr Feb 20, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add clang support for setup.py to get include and library path
  • Loading branch information
LihuaZhao authored and pxinwr committed Feb 20, 2019
commit 2c1394bfa15986a60055f7903706dd1035e9063e
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ def add_gcc_paths(self):
os.makedirs(self.build_temp)
ret = os.system('%s -E -v - </dev/null 2>%s 1>/dev/null' % (gcc, tmpfile))
is_gcc = False
is_clang = False
in_incdirs = False
inc_dirs = []
lib_dirs = []
Expand All @@ -525,17 +526,19 @@ def add_gcc_paths(self):
for line in fp.readlines():
if line.startswith("gcc version"):
is_gcc = True
if line.startswith("clang version"):
is_clang = True
elif line.startswith("#include <...>"):
in_incdirs = True
elif line.startswith("End of search list"):
in_incdirs = False
elif is_gcc and line.startswith("LIBRARY_PATH"):
elif (is_gcc or is_clang) and line.startswith("LIBRARY_PATH"):
for d in line.strip().split("=")[1].split(":"):
d = os.path.normpath(d)
if '/gcc/' not in d:
add_dir_to_list(self.compiler.library_dirs,
d)
elif is_gcc and in_incdirs and '/gcc/' not in line:
elif (is_gcc or is_clang) and in_incdirs and '/gcc/' not in line and '/clang/' not in line:
add_dir_to_list(self.compiler.include_dirs,
line.strip())
finally:
Expand Down