@@ -18,29 +18,23 @@ template("unix_toolchain") {
1818 command = " $cc -MMD -MF $depfile -o {{output}} -c {{source}} {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}}"
1919 depsformat = " gcc"
2020 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" ]
2422 }
2523
2624 tool (" cxx" ) {
2725 depfile = " {{output}}.d"
2826 command = " $cxx -MMD -MF $depfile -o {{output}} -c {{source}} {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}}"
2927 depsformat = " gcc"
3028 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" ]
3430 }
3531
3632 tool (" asm" ) {
3733 depfile = " {{output}}.d"
3834 command = " $cc -MMD -MF $depfile -o {{output}} -c {{source}} {{defines}} {{include_dirs}} {{asmflags}}"
3935 depsformat = " gcc"
4036 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" ]
4438 }
4539
4640 tool (" alink" ) {
@@ -53,9 +47,7 @@ template("unix_toolchain") {
5347 " rm -f {{output}} && $ar rcsD {{arflags}} {{output}} {{inputs}}"
5448 }
5549 description = " AR {{output}}"
56- outputs = [
57- " {{output_dir}}/{{target_output_name}}.a" ,
58- ]
50+ outputs = [ " {{output_dir}}/{{target_output_name}}.a" ]
5951 output_prefix = " lib"
6052 default_output_dir = " {{root_out_dir}}/lib"
6153 }
@@ -70,9 +62,7 @@ template("unix_toolchain") {
7062 default_output_extension = " .so"
7163 }
7264 description = " SOLINK $outfile "
73- outputs = [
74- outfile ,
75- ]
65+ outputs = [ outfile ]
7666 lib_switch = " -l"
7767 output_prefix = " lib"
7868 default_output_dir = " {{root_out_dir}}/lib"
@@ -88,9 +78,7 @@ template("unix_toolchain") {
8878 default_output_extension = " .so"
8979 }
9080 description = " SOLINK $outfile "
91- outputs = [
92- outfile ,
93- ]
81+ outputs = [ outfile ]
9482 lib_switch = " -l"
9583 default_output_dir = " {{root_out_dir}}/lib"
9684 }
@@ -103,9 +91,7 @@ template("unix_toolchain") {
10391 command = " $ld {{ldflags}} -o $outfile {{libs}} -Wl,--start-group {{inputs}} -Wl,--end-group"
10492 }
10593 description = " LINK $outfile "
106- outputs = [
107- outfile ,
108- ]
94+ outputs = [ outfile ]
10995 lib_switch = " -l"
11096
11197 # Setting this allows targets to override the default executable output by
@@ -237,26 +223,20 @@ toolchain("win") {
237223 command = " $cl /nologo /showIncludes /Fo{{output}} /c {{source}} {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}}"
238224 depsformat = " msvc"
239225 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" ]
243227 }
244228
245229 tool (" cxx" ) {
246230 command = " $cl /nologo /showIncludes /Fo{{output}} /c {{source}} {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}}"
247231 depsformat = " msvc"
248232 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" ]
252234 }
253235
254236 tool (" alink" ) {
255237 command = " $link /lib /nologo {{arflags}} /out:{{output}} {{inputs}}"
256238 description = " LIB {{output}}"
257- outputs = [
258- " {{output_dir}}/{{target_output_name}}.lib" ,
259- ]
239+ outputs = [ " {{output_dir}}/{{target_output_name}}.lib" ]
260240 default_output_dir = " {{root_out_dir}}/lib"
261241 }
262242
@@ -294,9 +274,7 @@ toolchain("win") {
294274 pdbfile = " $outprefix .pdb"
295275 command = " $link /nologo /dll {{ldflags}} /out:$dllfile /pdb:$pdbfile {{libs}} {{inputs}}"
296276 description = " LINK_MODULE $dllfile "
297- outputs = [
298- dllfile ,
299- ]
277+ outputs = [ dllfile ]
300278 lib_switch = " "
301279 runtime_outputs = outputs
302280 default_output_extension = " .dll"
@@ -310,9 +288,7 @@ toolchain("win") {
310288 pdbfile = " $outprefix .pdb"
311289 command = " $link /nologo {{ldflags}} /out:$outfile /pdb:$pdbfile {{libs}} {{inputs}}"
312290 description = " LINK $outfile "
313- outputs = [
314- outfile ,
315- ]
291+ outputs = [ outfile ]
316292 lib_switch = " "
317293 default_output_extension = " .exe"
318294
0 commit comments