Commit 81e6e7a0 authored by Christian Dietrich's avatar Christian Dietrich
Browse files

experiments/lua: append the CC variable instead of replacing it

parent dcadeb98
Pipeline #3048 passed with stage
in 0 seconds
......@@ -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 += "\nCC=%s\n" % (os.environ["CC"])
with open("%s/makefile" % path, "w") as fd:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment