Fix MSP Debug Stack dynamic library name on macOS

On macOS, a dynamic loadable library has .dylib suffix.
This commit is contained in:
Tadashi G. Takaoka 2018-04-03 22:59:55 +09:00
parent 7c41acd418
commit c9af50666d
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ const struct tilib_api_table *tilib_api;
#if defined(__Windows__) || defined(__CYGWIN__)
static const char tilib_filename[] = "MSP430.DLL";
#define TIDLL __stdcall
#elif defined(__APPLE__)
static const char tilib_filename[] = "libmsp430.dylib";
#define TIDLL
#else
static const char tilib_filename[] = "libmsp430.so";
#define TIDLL