targets/XSD_toolchain_gcc
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Mon, 18 Apr 2016 18:56:51 +0300
changeset 1478 69fe0b81e951
parent 621 a3ce93d63832
permissions -rwxr-xr-x
make attribute CFLAGS and LDFLAGS optional and add default empty value

Actually CFLAGS and LDFLAGS are not required and can be empty.
Without default empty value if target platform in project settings was
set to "Linux" CFLAGS and LDFLAGS was initialized with NoneType.
The result was broken build and it wasn't to save/load project with
such settings.

Traceback (most recent call last):
File "/home/developer/WorkData/PLC/beremiz/beremiz/ProjectController.py", line 956, in _Build
if not builder.build() :
File "/home/developer/WorkData/PLC/beremiz/beremiz/targets/toolchain_gcc.py", line 96, in build
Builder_CFLAGS = ' '.join(self.getBuilderCFLAGS())
TypeError: sequence item 0: expected string, NoneType found
251
2066d2c65b71 change default linker (ld ) to g++ in XSD for gcc toolchain
greg
parents: 203
diff changeset
     1
2066d2c65b71 change default linker (ld ) to g++ in XSD for gcc toolchain
greg
parents: 203
diff changeset
     2
          <xsd:attribute name="Compiler" type="xsd:string" use="optional" default="gcc"/>
1478
69fe0b81e951 make attribute CFLAGS and LDFLAGS optional and add default empty value
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 621
diff changeset
     3
          <xsd:attribute name="CFLAGS" type="xsd:string" use="optional" default=""/>
621
a3ce93d63832 Default gcc toolchain config now use 'gcc' for linking. Was left accidentally to g++ since old times of wxSVG based SVGUI. Cleaned up gcc parameters when linking
Edouard Tisserant
parents: 251
diff changeset
     4
          <xsd:attribute name="Linker" type="xsd:string" use="optional" default="gcc"/>
1478
69fe0b81e951 make attribute CFLAGS and LDFLAGS optional and add default empty value
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents: 621
diff changeset
     5
          <xsd:attribute name="LDFLAGS" type="xsd:string" use="optional" default=""/>