Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools_dso
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
setuptools_dso
Commits
92744dd1
Commit
92744dd1
authored
Aug 02, 2021
by
Michael Davidsaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diagnostic output from ProbeToolchain
parent
816a5c9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/setuptools_dso/probe.py
src/setuptools_dso/probe.py
+10
-3
No files found.
src/setuptools_dso/probe.py
View file @
92744dd1
...
...
@@ -113,7 +113,9 @@ class ProbeToolchain(object):
"""
src
=
[
'#include <%s>'
%
h
for
h
in
self
.
headers
+
list
(
headers
)]
return
self
.
try_compile
(
'
\
n
'
.
join
(
src
),
**
kws
)
ret
=
self
.
try_compile
(
'
\
n
'
.
join
(
src
),
**
kws
)
log
.
info
(
'Probe includes %s -> %s'
,
headers
,
'Present'
if
ret
else
'Absent'
)
return
ret
def
check_include
(
self
,
header
,
**
kws
):
"""Return true if the header may be included
...
...
@@ -165,6 +167,7 @@ class ProbeToolchain(object):
raise
RuntimeError
(
'Unable to find PROBEINFO for %s'
%
typename
)
size
=
int
(
M
.
group
(
1
))
log
.
info
(
'Probe sizeof(%s) = %d'
,
typename
,
size
)
return
size
...
...
@@ -190,7 +193,9 @@ class ProbeToolchain(object):
''
]
return
self
.
try_compile
(
'
\
n
'
.
join
(
src
),
**
kws
)
ret
=
self
.
try_compile
(
'
\
n
'
.
join
(
src
),
**
kws
)
log
.
info
(
'Probe Symbol %s -> %s'
,
symname
,
'Present'
if
ret
else
'Absent'
)
return
ret
def
check_member
(
self
,
struct
,
member
,
headers
=
(),
**
kws
):
"""Return True if the given structure has the named member
...
...
@@ -211,4 +216,6 @@ class ProbeToolchain(object):
''
]
return
self
.
try_compile
(
'
\
n
'
.
join
(
src
),
**
kws
)
ret
=
self
.
try_compile
(
'
\
n
'
.
join
(
src
),
**
kws
)
log
.
info
(
'Probe Member %s::%s -> %s'
,
struct
,
member
,
'Present'
if
ret
else
'Absent'
)
return
ret
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment