SCons Fix bug: Git Hash
SCons failed to rebuild game_config when the Git hash changes. The newer version was not copied into the source tree.
This commit is contained in:
parent
e3c249fd88
commit
fb715ec518
1 changed files with 2 additions and 0 deletions
|
@ -541,6 +541,8 @@ if not env['static_test']:
|
|||
try:
|
||||
if call(env.subst("utils/autorevision -t h > $build_dir/revision.h"), shell=True) == 0:
|
||||
env["have_autorevision"] = True
|
||||
if not call(env.subst("cmp -s $build_dir/revision.h src/revision.h"), shell=True) == 0:
|
||||
call(env.subst("cp $build_dir/revision.h src/revision.h"), shell=True)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue