MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / GCCC99Patch

Function GCCC99Patch

tools/utils.py:276–285  ·  view source on GitHub ↗
(cflags)

Source from the content-addressed store, hash-verified

274 return 0
275
276def GCCC99Patch(cflags):
277 import building
278 gcc_version = building.GetDepend('GCC_VERSION_STR')
279 if gcc_version:
280 gcc_version = gcc_version.replace('"', '')
281 if VersionCmp(gcc_version, "4.8.0") == 1:
282 # remove -std=c99 after GCC 4.8.x
283 cflags = cflags.replace('-std=c99', '')
284
285 return cflags
286
287def ReloadModule(module):
288 import sys

Callers

nothing calls this directly

Calls 2

VersionCmpFunction · 0.85
GetDependMethod · 0.80

Tested by

no test coverage detected