Skip to content

Commit 74223e1

Browse files
committed
new option 'use-newlib-nano', 'not-use-syscalls'
1 parent 8123691 commit 74223e1

3 files changed

Lines changed: 37 additions & 1 deletion

File tree

lang/arm.gcc.verify.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@
144144
"dwarf-3"
145145
]
146146
},
147+
"use-newlib-nano": {
148+
"markdownDescription": "Use newlib-nano (--specs=nano.specs)",
149+
"type": "boolean"
150+
},
151+
"not-use-syscalls": {
152+
"markdownDescription": "Do not use syscalls (--specs=nosys.specs)",
153+
"type": "boolean"
154+
},
147155
"misc-control": {
148156
"markdownDescription": "Other Global Options",
149157
"description.zh-cn": "编译器附加选项(全局)",

res/data/models/arm.gcc.model.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,32 @@
299299
"cpp"
300300
]
301301
},
302+
"use-newlib-nano": {
303+
"type": "selectable",
304+
"command": {
305+
"true": "--specs=nano.specs",
306+
"false": ""
307+
},
308+
"group": [
309+
"c",
310+
"cpp",
311+
"asm",
312+
"linker"
313+
]
314+
},
315+
"not-use-syscalls": {
316+
"type": "selectable",
317+
"command": {
318+
"true": "--specs=nosys.specs",
319+
"false": ""
320+
},
321+
"group": [
322+
"c",
323+
"cpp",
324+
"asm",
325+
"linker"
326+
]
327+
},
302328
"misc-control": {
303329
"type": "list",
304330
"command": "",

src/ToolchainManager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2400,7 +2400,9 @@ class GCC implements IToolchian {
24002400
global: {
24012401
"$float-abi-type": 'hard',
24022402
"output-debug-info": 'enable',
2403-
"misc-control": "--specs=nosys.specs --specs=nano.specs"
2403+
"use-newlib-nano": true,
2404+
"not-use-syscalls": true,
2405+
"misc-control": ""
24042406
},
24052407
'c/cpp-compiler': {
24062408
"language-c": "c11",

0 commit comments

Comments
 (0)