diff options
| author | Bernard Xiong <[email protected]> | 2019-01-19 16:19:16 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-01-19 16:19:16 +0800 |
| commit | e78eeb8ab0ed907f609c01bc33cb2b4a4cecce46 (patch) | |
| tree | d277ee4c2538e00f5a9d31cc0827c0aaa6374c9f /tools | |
| parent | 7dcacc164734f53cc77baa401688a01874e32098 (diff) | |
| parent | ed725350a99b3e0406ff29ff9157abd6fb5044f6 (diff) | |
Merge pull request #2237 from enkiller/dev
[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() |
