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
81e6e7a0
Commit
81e6e7a0
authored
Jan 25, 2017
by
Christian Dietrich
Browse files
experiments/lua: append the CC variable instead of replacing it
parent
dcadeb98
Pipeline
#3048
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
experiments/lib.py
View file @
81e6e7a0
...
...
@@ -59,9 +59,8 @@ class ClangHashHelper:
# CC variable from the outsite.
with
open
(
"%s/makefile"
%
path
)
as
fd
:
content
=
fd
.
readlines
()
for
i
in
range
(
0
,
len
(
content
)):
if
content
[
i
].
startswith
(
"CC"
):
content
[
i
]
=
"
\n
"
content
+=
"
\n
CC=%s
\n
"
%
(
os
.
environ
[
"CC"
])
with
open
(
"%s/makefile"
%
path
,
"w"
)
as
fd
:
fd
.
write
(
""
.
join
(
content
))
...
...
Write
Preview
Supports
Markdown
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