Skip to content

Commit

Permalink
Modify template to work with partial profile
Browse files Browse the repository at this point in the history
This is to work around a CI issue whereby each profile is checked in turn. In the case of a partial profile (one which needs to be combined with a another profile) the CI test was failing as the template did not handle some undefined sections. This should have no impact when the exporters are correctly used from the command line.
  • Loading branch information
madchutney committed Jul 30, 2019
1 parent dc53154 commit 3010aaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/export/gnuarmeclipse/.cproject.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
<listOptionValue builtIn="false" value="&quot;${ProjDirPath}/{{file}}&quot;"/>
{% endfor %}
</option>
{% if opts['c']['compiler.std'] %}
{% if opts['c'].get('compiler.std') %}
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std.{{u.id}}" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std" value="ilg.gnuarmeclipse.managedbuild.cross.option.c.compiler.std.{{opts['c']['compiler.std']}}" valueType="enumerated"/>
{% endif %}
{% if opts['c']['otheroptimizations'] != '' %}
Expand Down Expand Up @@ -263,7 +263,7 @@
<listOptionValue builtIn="false" value="&quot;${ProjDirPath}/{{file}}&quot;"/>
{% endfor %}
</option>
{% if opts['cpp']['compiler.std'] %}
{% if opts['cpp'].get('compiler.std') %}
<option id="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.compiler.std.{{u.id}}" superClass="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.compiler.std" value="ilg.gnuarmeclipse.managedbuild.cross.option.cpp.compiler.std.{{opts['cpp']['compiler.std']}}" valueType="enumerated"/>
{% endif %}

Expand Down

0 comments on commit 3010aaa

Please sign in to comment.