mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 14:13:23 +00:00
Include git hash in the binary
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
fa0bd4f789
commit
5790115e40
3 changed files with 26 additions and 8 deletions
|
@ -101,6 +101,8 @@ def mk_build_dir(path, x64):
|
|||
opts.append('--java')
|
||||
if x64:
|
||||
opts.append('-x')
|
||||
if GIT_HASH:
|
||||
opts.append('--githash=%s' % mk_util.git_hash())
|
||||
if subprocess.call(opts) != 0:
|
||||
raise MKException("Failed to generate build directory at '%s'" % path)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue