Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Jan 15, 2025
1 parent 35e7af8 commit 207531d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/embed_env_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ def transform_cpp_define_string(k: str, v: str) -> str:


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

try:
Expand Down

0 comments on commit 207531d

Please sign in to comment.