Skip to content

Commit 207531d

Browse files
committed
Oops
1 parent 35e7af8 commit 207531d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/embed_env_vars.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ def transform_cpp_define_string(k: str, v: str) -> str:
129129

130130

131131
def serialize_cpp_define(k: str, v: str | int | bool) -> str | int:
132+
# Special case for variables that can sometimes be fully made up of numeric characters, breaking builds in specific situations.
133+
if k in ['OPENSHOCK_FW_GIT_COMMIT', 'OPENSHOCK_FW_VERSION_BUILD']:
132134
return transform_cpp_define_string(k, str(v))
133135

134136
try:

0 commit comments

Comments
 (0)