[build] Set _GNU_SOURCE for bare-metal platforms
ISSUE:
@@ -1426,7 +1426,7 @@ class GnuCompiler(Compiler):
# Arcadia have API 16 for 32-bit Androids.
self.c_defines.append('-D_FILE_OFFSET_BITS=64')
- if self.target.is_linux or self.target.is_android or self.target.is_cygwin:
+ if self.target.is_linux or self.target.is_android or self.target.is_cygwin or self.target.is_none:
self.c_defines.append('-D_GNU_SOURCE')
if self.tc.is_clang and self.target.is_linux and self.target.is_x86_64:
