@@ -18,29 +18,23 @@ template("unix_toolchain") {
18
18
command = " $cc -MMD -MF $depfile -o {{output}} -c {{source}} {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}}"
19
19
depsformat = " gcc"
20
20
description = " CC {{output}}"
21
- outputs = [
22
- " {{source_out_dir}}/{{label_name}}.{{source_name_part}}.o" ,
23
- ]
21
+ outputs = [ " {{source_out_dir}}/{{label_name}}.{{source_name_part}}.o" ]
24
22
}
25
23
26
24
tool (" cxx" ) {
27
25
depfile = " {{output}}.d"
28
26
command = " $cxx -MMD -MF $depfile -o {{output}} -c {{source}} {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}}"
29
27
depsformat = " gcc"
30
28
description = " CXX {{output}}"
31
- outputs = [
32
- " {{source_out_dir}}/{{label_name}}.{{source_name_part}}.o" ,
33
- ]
29
+ outputs = [ " {{source_out_dir}}/{{label_name}}.{{source_name_part}}.o" ]
34
30
}
35
31
36
32
tool (" asm" ) {
37
33
depfile = " {{output}}.d"
38
34
command = " $cc -MMD -MF $depfile -o {{output}} -c {{source}} {{defines}} {{include_dirs}} {{asmflags}}"
39
35
depsformat = " gcc"
40
36
description = " ASM {{output}}"
41
- outputs = [
42
- " {{source_out_dir}}/{{label_name}}.{{source_name_part}}.o" ,
43
- ]
37
+ outputs = [ " {{source_out_dir}}/{{label_name}}.{{source_name_part}}.o" ]
44
38
}
45
39
46
40
tool (" alink" ) {
@@ -53,9 +47,7 @@ template("unix_toolchain") {
53
47
" rm -f {{output}} && $ar rcsD {{arflags}} {{output}} {{inputs}}"
54
48
}
55
49
description = " AR {{output}}"
56
- outputs = [
57
- " {{output_dir}}/{{target_output_name}}.a" ,
58
- ]
50
+ outputs = [ " {{output_dir}}/{{target_output_name}}.a" ]
59
51
output_prefix = " lib"
60
52
default_output_dir = " {{root_out_dir}}/lib"
61
53
}
@@ -70,9 +62,7 @@ template("unix_toolchain") {
70
62
default_output_extension = " .so"
71
63
}
72
64
description = " SOLINK $outfile "
73
- outputs = [
74
- outfile ,
75
- ]
65
+ outputs = [ outfile ]
76
66
lib_switch = " -l"
77
67
output_prefix = " lib"
78
68
default_output_dir = " {{root_out_dir}}/lib"
@@ -88,9 +78,7 @@ template("unix_toolchain") {
88
78
default_output_extension = " .so"
89
79
}
90
80
description = " SOLINK $outfile "
91
- outputs = [
92
- outfile ,
93
- ]
81
+ outputs = [ outfile ]
94
82
lib_switch = " -l"
95
83
default_output_dir = " {{root_out_dir}}/lib"
96
84
}
@@ -103,9 +91,7 @@ template("unix_toolchain") {
103
91
command = " $ld {{ldflags}} -o $outfile {{libs}} -Wl,--start-group {{inputs}} -Wl,--end-group"
104
92
}
105
93
description = " LINK $outfile "
106
- outputs = [
107
- outfile ,
108
- ]
94
+ outputs = [ outfile ]
109
95
lib_switch = " -l"
110
96
111
97
# Setting this allows targets to override the default executable output by
@@ -237,26 +223,20 @@ toolchain("win") {
237
223
command = " $cl /nologo /showIncludes /Fo{{output}} /c {{source}} {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}}"
238
224
depsformat = " msvc"
239
225
description = " CC {{output}}"
240
- outputs = [
241
- " {{source_out_dir}}/{{label_name}}.{{source_name_part}}.obj" ,
242
- ]
226
+ outputs = [ " {{source_out_dir}}/{{label_name}}.{{source_name_part}}.obj" ]
243
227
}
244
228
245
229
tool (" cxx" ) {
246
230
command = " $cl /nologo /showIncludes /Fo{{output}} /c {{source}} {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}}"
247
231
depsformat = " msvc"
248
232
description = " CXX {{output}}"
249
- outputs = [
250
- " {{source_out_dir}}/{{label_name}}.{{source_name_part}}.obj" ,
251
- ]
233
+ outputs = [ " {{source_out_dir}}/{{label_name}}.{{source_name_part}}.obj" ]
252
234
}
253
235
254
236
tool (" alink" ) {
255
237
command = " $link /lib /nologo {{arflags}} /out:{{output}} {{inputs}}"
256
238
description = " LIB {{output}}"
257
- outputs = [
258
- " {{output_dir}}/{{target_output_name}}.lib" ,
259
- ]
239
+ outputs = [ " {{output_dir}}/{{target_output_name}}.lib" ]
260
240
default_output_dir = " {{root_out_dir}}/lib"
261
241
}
262
242
@@ -294,9 +274,7 @@ toolchain("win") {
294
274
pdbfile = " $outprefix .pdb"
295
275
command = " $link /nologo /dll {{ldflags}} /out:$dllfile /pdb:$pdbfile {{libs}} {{inputs}}"
296
276
description = " LINK_MODULE $dllfile "
297
- outputs = [
298
- dllfile ,
299
- ]
277
+ outputs = [ dllfile ]
300
278
lib_switch = " "
301
279
runtime_outputs = outputs
302
280
default_output_extension = " .dll"
@@ -310,9 +288,7 @@ toolchain("win") {
310
288
pdbfile = " $outprefix .pdb"
311
289
command = " $link /nologo {{ldflags}} /out:$outfile /pdb:$pdbfile {{libs}} {{inputs}}"
312
290
description = " LINK $outfile "
313
- outputs = [
314
- outfile ,
315
- ]
291
+ outputs = [ outfile ]
316
292
lib_switch = " "
317
293
default_output_extension = " .exe"
318
294
0 commit comments