Skip to content

Commit 74cb3d0

Browse files
author
realtag
committed
Fix git hash define quoting
1 parent 3157c30 commit 74cb3d0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/git_version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ def _get_git_hash():
1515

1616

1717
git_hash = _get_git_hash()
18-
env.Append(CPPDEFINES=[("GIT_HASH", '"%s"' % git_hash)])
18+
# Define as a string literal for the compiler (escape quotes).
19+
env.Append(CPPDEFINES=[("GIT_HASH", '\\"%s\\"' % git_hash)])

0 commit comments

Comments
 (0)