Community
Participate
Working Groups
When assigning a .libTemplate to a package, a new "-D__xdc_bld_pkg_c__=package.bld.c" definition is added to the compile lines. When the user supplies their own compile defs, this -D__xdc_bld_pkg_c__ option is added to the user-supplied definitions without a space between them. In xdc/bld/_gen.xs, I see the following line - only when there is a pkg.libTemplate provided: libAttrs.defs = defs + "-D__xdc_bld_pkg_c__=package.bld.c"; I think we need to add a space before the -D libAttrs.defs = defs + " -D__xdc_bld_pkg_c__=package.bld.c"; A workaround is that the pkg supplying their own defs must add a trailing space to their defs.
fixed in r955 (to be part of xdc-v31) r956 (to be part of any future 3.16 release)
- verified that the problem as described exists in 3.20.00.35 by adding Pkg.libTemplate and user defined 'defs' for a library. - using 3.20.00.39 adds a space between user-defined defs and the Pkg.libTemplate addition to the command line.
3.20 available from http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/3_20_00_41/index_FDS.html