Julius Pfrommer 8 rokov pred
rodič
commit
cc8cab755b
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      tools/amalgamate.py

+ 2 - 0
tools/amalgamate.py

@@ -69,6 +69,8 @@ for fname in args.inputs:
             guard_res = guard_re.match(line)
             if not inc_res and not guard_res:
                 file.write(line)
+                # Ensure file is written to disk.
+                file.flush()
         print ("done."),
 
 if not is_c: