Commits

Anonymous committed 18e5983

Windows portability.

Comments (0)

Files changed (1)

test/rebuild-generated.py

 
 env = Environment()
 
-kernelDefines = env.Command("header.hh", [], "echo > $TARGET")
+kernelDefines = env.Command("header.hh",
+                            "header.hh.in",
+                            Copy('$TARGET', '$SOURCE'))
 
 kernelImporterSource = env.Command(
   "generated.cc", ["%s"],
 #endif
 """)
 
+test.write("header.hh.in", "#define HEADER_HH 1\n")
+
 test.run(arguments = 'target' + _obj)
 
 expected_stdout = """\