From 4b9046328dd9cc5905bc7c971eaa03248f0f0396 Mon Sep 17 00:00:00 2001 From: stijn <stijn@ignitron.net> Date: Thu, 23 Jun 2016 09:55:28 +0200 Subject: [PATCH] windows/msvc: Include machine_pinbase.c in build and enable umachine module Fixes linker errors since [ad229477] and adds the umachine module so tests pass. --- windows/mpconfigport.h | 1 + windows/msvc/sources.props | 1 + 2 files changed, 2 insertions(+) diff --git a/windows/mpconfigport.h b/windows/mpconfigport.h index 3289c7b7c..a860c2e32 100644 --- a/windows/mpconfigport.h +++ b/windows/mpconfigport.h @@ -158,6 +158,7 @@ extern const struct _mp_obj_module_t mp_module_os; extern const struct _mp_obj_module_t mp_module_time; #define MICROPY_PORT_BUILTIN_MODULES \ { MP_OBJ_NEW_QSTR(MP_QSTR_utime), (mp_obj_t)&mp_module_time }, \ + { MP_OBJ_NEW_QSTR(MP_QSTR_umachine), (mp_obj_t)&mp_module_machine }, \ { MP_OBJ_NEW_QSTR(MP_QSTR_uos), (mp_obj_t)&mp_module_os }, \ #if MICROPY_USE_READLINE == 1 diff --git a/windows/msvc/sources.props b/windows/msvc/sources.props index b1065bdfe..569f24c76 100644 --- a/windows/msvc/sources.props +++ b/windows/msvc/sources.props @@ -14,6 +14,7 @@ <ClCompile Include="$(PyBaseDir)unix\modtime.c"/> <ClCompile Include="$(PyBaseDir)unix\modmachine.c" /> <ClCompile Include="$(PyBaseDir)extmod\machine_mem.c" /> + <ClCompile Include="$(PyBaseDir)extmod\machine_pinbase.c" /> <ClCompile Include="$(PyBaseDir)extmod\modubinascii.c" /> <ClCompile Include="$(PyBaseDir)extmod\moductypes.c" /> <ClCompile Include="$(PyBaseDir)extmod\moduhashlib.c" /> -- GitLab