diff options
| author | rcitach <[email protected]> | 2025-04-25 09:43:32 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2025-04-28 10:52:58 +0800 |
| commit | 5833e02e2f495e2f70af596351b74f349afa2ec3 (patch) | |
| tree | aaf0e56914ee2d9078f2058081c0d959e0eedd4a /libcpu | |
| parent | e08fc2999b267182344528403466dd1a0f9ea8c6 (diff) | |
Fix Aarch64 architecture runtime issues
该问题由5b3320624da5149fc21c2d3e1f321d855e3d0dfe引入,导致工具链编译时加上了 -std=gnu99,其他架构是否出问题暂时未知
Diffstat (limited to 'libcpu')
| -rw-r--r-- | libcpu/aarch64/SConscript | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcpu/aarch64/SConscript b/libcpu/aarch64/SConscript index c4dd45682c..5dece501d9 100644 --- a/libcpu/aarch64/SConscript +++ b/libcpu/aarch64/SConscript @@ -24,4 +24,12 @@ group = group + SConscript(os.path.join('common', 'SConscript')) if rtconfig.CPU != 'common': group = group + SConscript(os.path.join(rtconfig.CPU, 'SConscript')) +def del_gnu99(): + for g in Projects: + if g["name"] == "Kernel": + flags = re.sub(r'\s+', ' ', re.sub(r'\s*-std=gnu99\s*', ' ', g["LOCAL_CFLAGS"])).strip() + flags = re.sub(r'(?<!\s)(-Wunused)', r' \1', flags) + g["LOCAL_CFLAGS"] = flags + +RegisterPreBuildingAction(del_gnu99) Return('group') |
