mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-28 00:58:09 +00:00
fix(core): fix cmakelists generation
[no changelog]
This commit is contained in:
parent
6931e61f75
commit
e6c6065fce
@ -52,7 +52,8 @@ def get_defs_for_cmake(defs: list[str | tuple[str, str]]) -> list[str]:
|
||||
result: list[str] = []
|
||||
for d in defs:
|
||||
if type(d) is tuple:
|
||||
result.append(d[0] + "=" + d[1])
|
||||
val = d[1].replace('"', '\\"').replace("(", "\\(").replace(")", "\\)")
|
||||
result.append(f'{d[0]}="{val}"')
|
||||
else:
|
||||
result.append(d)
|
||||
return result
|
||||
|
Loading…
Reference in New Issue
Block a user