1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-29 02:48:18 +00:00

fixup! fix(core): fix cmakelists generation

This commit is contained in:
tychovrahe 2024-11-22 16:28:19 +01:00
parent f85c0b2061
commit 92b67705b9

View File

@ -53,7 +53,7 @@ def get_defs_for_cmake(defs: list[str | tuple[str, str]]) -> list[str]:
for d in defs: for d in defs:
if type(d) is tuple: if type(d) is tuple:
val = d[1].replace('"', '\\"').replace("(", "\\(").replace(")", "\\)") val = d[1].replace('"', '\\"').replace("(", "\\(").replace(")", "\\)")
result.append(d[0] + '="' + val + '"') result.append(f'{d[0]}="{val}"')
else: else:
result.append(d) result.append(d)
return result return result