diff options
| author | Bernard Xiong <[email protected]> | 2018-01-16 20:21:40 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2018-01-16 20:21:40 +0800 |
| commit | c472533f021f591f6d93e6cd24285472a00a0974 (patch) | |
| tree | 6a2f3371aff56d5c82b09c1ec1f96efaa7b8ec54 /tools/building.py | |
| parent | 18b133051dc5fbc27fe2975e5b71fdfd2335ea6d (diff) | |
[Tools] Add _REENT_SMALL definition when enable nano-newlib
Diffstat (limited to 'tools/building.py')
| -rw-r--r-- | tools/building.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/building.py b/tools/building.py index 6660ed8187..2a2f086b67 100644 --- a/tools/building.py +++ b/tools/building.py @@ -140,6 +140,10 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [ env['LIBLINKSUFFIX'] = '.lib' env['LIBDIRPREFIX'] = '--userlibpath ' + if rtconfig.PLATFORM == 'gcc': + if env['LINKFLAGS'].find('nano.specs'): + env.AppendUnique(CPPDEFINES = ['_REENT_SMALL']) + # patch for win32 spawn if env['PLATFORM'] == 'win32': win32_spawn = Win32Spawn() |
