updated CodeGeneration
This commit is contained in:
8
Software/codegen/git_rev_macro.py
Normal file
8
Software/codegen/git_rev_macro.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import subprocess
|
||||
|
||||
revision = (
|
||||
subprocess.check_output(["git", "rev-parse", "--short=10", "HEAD"])
|
||||
.strip()
|
||||
.decode("utf-8")
|
||||
)
|
||||
print("-DGIT_REV='\"%s\"'" % revision)
|
Reference in New Issue
Block a user