Commit a2f38130 authored by Christian Dietrich's avatar Christian Dietrich
Browse files

experiment: add spurious #line directive instead of ;

parent a17a35fa
Pipeline #2995 passed with stage
in 0 seconds
......@@ -16,8 +16,8 @@ define inc_template
inc_$(shell echo $1 | tr '[:upper:]' '[:lower:]' )_$2:
./incremental_rebuild.py -s \
-d ../versuchung-data --jobs $(JOBS) \
-vv --clang_hash-clone-url ${CLANG_HASH} \
--project-clone-url ${$1} --mode $2 --dummy
-v --clang_hash-clone-url ${CLANG_HASH} \
--project-clone-url ${$1} --mode $2
inc_$(shell echo $1 | tr '[:upper:]' '[:lower:]' ): inc_$(shell echo $1 | tr '[:upper:]' '[:lower:]' )_$2
endef
......
......@@ -78,12 +78,9 @@ class IncrementalCompilation(Experiment):
else:
with open(path) as fd:
content = fd.read()
if ";\n" in content:
content = content.replace(";\n", ";;\n", 1)
with open(path, "w") as fd:
fd.write(content)
else:
os.utime(path, None)
content = "#line 1\n" + content
with open(path, "w") as fd:
fd.write(content)
def rebuild(self, path, cause):
info = {'filename': cause}
......
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