diff options
| author | tangyuxin <[email protected]> | 2019-01-19 15:16:14 +0800 |
|---|---|---|
| committer | tangyuxin <[email protected]> | 2019-01-19 15:16:14 +0800 |
| commit | ed725350a99b3e0406ff29ff9157abd6fb5044f6 (patch) | |
| tree | d277ee4c2538e00f5a9d31cc0827c0aaa6374c9f /tools | |
| parent | 7dcacc164734f53cc77baa401688a01874e32098 (diff) | |
[tools] 修复命令行使用 iar 工具链,库文件链接不上的问题
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/building.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/building.py b/tools/building.py index ef1cb3da66..978c0f7237 100644 --- a/tools/building.py +++ b/tools/building.py @@ -273,6 +273,13 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [ env['LIBLINKSUFFIX'] = '.lib' env['LIBDIRPREFIX'] = '--userlibpath ' + elif rtconfig.PLATFORM == 'iar': + env['LIBPREFIX'] = '' + env['LIBSUFFIX'] = '.a' + env['LIBLINKPREFIX'] = '' + env['LIBLINKSUFFIX'] = '.a' + env['LIBDIRPREFIX'] = '--search ' + # patch for win32 spawn if env['PLATFORM'] == 'win32': win32_spawn = Win32Spawn() |
