Skip to content

Commit b69cdc0

Browse files
theotherjimmyCruz Monrreal II
authored andcommitted
Condense exported IAR project file
1 parent 6935ae2 commit b69cdc0

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

tools/export/iar/ewp.tmpl

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@
265265
</option>
266266
<option>
267267
<name>IExtraOptions</name>
268-
{% for flag in c_flags %}
268+
{% for flag in c_flags -%}
269269
<state>{{flag}}</state>
270-
{% endfor %}
270+
{% endfor -%}
271271
</option>
272272
<option>
273273
<name>CCLangConformance</name>
@@ -315,9 +315,9 @@
315315
</option>
316316
<option>
317317
<name>CCIncludePath2</name>
318-
{% for file in include_paths %}
318+
{% for file in include_paths -%}
319319
<state>{{file}}</state>
320-
{% endfor %}
320+
{% endfor -%}
321321
</option>
322322
<option>
323323
<name>CCStdIncCheck</name>
@@ -583,9 +583,9 @@
583583
</option>
584584
<option>
585585
<name>AExtraOptionsV2</name>
586-
{% for flag in asm_flags %}
587-
<state>{{flag}}</state>
588-
{% endfor %}
586+
{% for flag in asm_flags -%}
587+
<state>{{flag|escape}}</state>
588+
{% endfor -%}
589589
</option>
590590
<option>
591591
<name>AsmNoLiteralPool</name>
@@ -765,9 +765,9 @@
765765
</option>
766766
<option>
767767
<name>IlinkExtraOptions</name>
768-
{% for flag in ld_flags %}
768+
{% for flag in ld_flags -%}
769769
<state>{{flag}}</state>
770-
{% endfor %}
770+
{% endfor -%}
771771
</option>
772772
<option>
773773
<name>IlinkLowLevelInterfaceSlave</name>
@@ -963,14 +963,12 @@
963963
<data></data>
964964
</settings>
965965
</configuration>
966-
{% for group in groups %}
966+
{% for group in groups -%}
967967
<group>
968968
<name>{{group.name}}</name>
969-
{% for file in group.files %}
970-
<file>
971-
<name>{{file}}</name>
972-
</file>
973-
{% endfor %}
969+
{% for file in group.files -%}
970+
<file> <name>{{file}}</name> </file>
971+
{% endfor -%}
974972
</group>
975-
{% endfor %}
973+
{% endfor -%}
976974
</project>

0 commit comments

Comments
 (0)