add pid to temp filename so that make -j works

This commit is contained in:
Denys Duchier 2011-08-12 16:33:57 +02:00
parent d70e53f243
commit 4c4f3b624d

View File

@ -648,8 +648,9 @@ def gecode_version():
import os
cxx = new_compiler()
customize_compiler(cxx)
file_hh = "_gecode_version.hh"
file_txt = "_gecode_version.txt"
pid = os.getpid()
file_hh = "_gecode_version_%d.hh" % pid
file_txt = "_gecode_version_%d.txt" % pid
f = file(file_hh,"w")
f.write("""#include "gecode/support/config.hpp"
@@GECODE_VERSION""")