Undefined Warning for MICROPY_ROM_TEXT_COMPRESSION When Building porting Project with CMake #14301
Unanswered
cjkzwe
asked this question in
Core Development
Replies: 1 comment
-
I found that the code for generating the files associated with this macro are missing in mkrules.cmake compared to mkrules.mk.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’m porting micropython to a new MCU which toolchain uses CMake. However, I’ve run into a warning that states “MICROPY_ROM_TEXT_COMPRESSION” is not defined. The warning message is as follows:
warning: “MICROPY_ROM_TEXT_COMPRESSION” is not defined, evaluates to 0 [-Wundef] 113 | #if MICROPY_ROM_TEXT_COMPRESSION | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Being new to this project, I’m unsure of how the “MICROPY_ROM_TEXT_COMPRESSION” option works. I’ve seen in other porting projects’ Makefiles that there’s a line like “MICROPY_ROM_TEXT_COMPRESSION ?=1”. Could someone please guide me on how to achieve the same effect in CMake? How do I properly define and set this macro in the project?
Furthermore, I would like to understand the purpose and implications of enabling or disabling this macro in the context of MicroPython.
Any help or insights would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions