• Jim Mussared's avatar
    py/profile: Remove the requirement to disable MICROPY_COMP_CONST. · b2b5bcce
    Jim Mussared authored
    
    
    The only reason that const had to be disabled was to make the test output
    match CPython when const was involved.  Instead, this commit fixes the test
    to handle the lines where const is used.
    
    Also:
    - remove the special handling for MICROPY_PERSISTENT_CODE_SAVE in
      unix/mpconfigport.h, and make this automatic.
    - move the check for MICROPY_PERSISTENT_CODE_SAVE to where it's used (like
      we do for other similar checks) and add a comment explaining it.
    
    This work was funded through GitHub Sponsors.
    Signed-off-by: default avatarJim Mussared <jim.mussared@gmail.com>
    b2b5bcce
profile.c 31.1 KB