gromero commented on code in PR #12125: URL: https://github.com/apache/tvm/pull/12125#discussion_r944008143
########## apps/microtvm/zephyr/template_project/microtvm_api_server.py: ########## @@ -166,6 +169,18 @@ def _find_board_from_cmake_file(cmake_file: Union[str, pathlib.Path]) -> str: return zephyr_board +def _find_platform_from_cmake_file(cmake_file: Union[str, pathlib.Path]) -> str: + emu_platform = None + with open(API_SERVER_DIR / CMAKELIST_FILENAME) as cmake_f: + for line in cmake_f: + if line.startswith("set(EMU_PLATFORM"): Review Comment: @mkatanbaf This line can be removed now that `re.match` is in place. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@tvm.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org