Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Dietrich
clang-hash
Commits
31154fce
Commit
31154fce
authored
Feb 04, 2017
by
Christian Dietrich
Browse files
log: we should not log the console output. for real.
parent
73dd51a6
Pipeline
#3102
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
experiments/lib.py
View file @
31154fce
...
...
@@ -57,7 +57,7 @@ class ClangHashHelper:
shell_failok
(
"cd %s; ./configure"
,
path
)
elif
self
.
project_name
()
in
(
"samba"
):
# Samba does not do optimizations if the argv[0] of the compiler is unknown. The default is -O2 for gcc. Therefore, we also use that.
shell_failok
(
"cd %s; ADDITIONAL_CFLAGS=-O2 ./configure"
,
path
)
shell_failok
(
"cd %s; ADDITIONAL_CFLAGS=-O2 ./
buildtools/bin/waf
configure"
,
path
)
elif
self
.
project_name
()
in
(
"cpython"
,):
shell
(
"cd %s; mkdir -p build build/Modules;"
,
path
)
shell
(
"cd %s; cp -u Modules/Setup.dist build/Modules/Setup"
,
path
)
...
...
@@ -88,6 +88,8 @@ class ClangHashHelper:
shell_failok
(
"cd %s/build; make config.status"
,
path
)
if
self
.
project_name
()
==
"bash"
:
shell_failok
(
"cd %s; make config.status"
,
path
)
if
self
.
project_name
()
==
"samba"
:
shell_failok
(
"cd %s; ADDITIONAL_CFLAGS=-O2 ./buildtools/bin/waf reconfigure"
,
path
)
def
call_make
(
self
,
path
):
...
...
@@ -129,7 +131,7 @@ class ClangHashHelper:
build_time
=
int
((
end_time
-
start_time
)
*
1e9
)
info
[
'build-time'
]
=
build_time
info
[
'build-log'
]
=
ret
[
0
]
#
info['build-log'] = ret[0]
# Record Cache misses and hits
if
"ccache"
in
self
.
mode
.
value
:
...
...
@@ -139,7 +141,7 @@ class ClangHashHelper:
if
"clang-hash"
in
self
.
mode
.
value
:
log
=
hash_log
.
read
()
#
info['clang-hash-log'] = log
info
[
'clang-hash-log'
]
=
log
info
[
'clang-hash-hits'
]
=
log
.
count
(
"H"
)
info
[
'clang-hash-misses'
]
=
log
.
count
(
"M"
)
hash_log
.
close
()
...
...
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