Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332968 - Cannot set profile specific cfgcopts
Summary: Cannot set profile specific cfgcopts
Status: CLOSED FIXED
Alias: None
Product: RTSC
Classification: Technology
Component: Targets (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Sasha Slijepcevic CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-20 13:22 EST by Ramsey Harris CLA
Modified: 2011-11-09 18:55 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ramsey Harris CLA 2010-12-20 13:22:44 EST
I am trying to set specific copts for just the generated config file for just the debug profile. I'm building an executable. The cfgcopts are not making it into the compile command.

I'm using the following in my config.bld script:

T16elf.profiles["debug"].compileOpts.cfgcopts = "--gen_func_subsections";

Inspecting the generated makefile debug/Server_xet16.mak, I do not find this option in the compile command.

Changing the config.bld script to the following adds the option to the compile command for all source files:

T16elf.profiles["debug"].compileOpts.copts += " --gen_func_subsections ";
Comment 1 Sasha Slijepcevic CLA 2011-01-03 13:25:40 EST
- fixed in xdc-w20

In xdc/bld/_gen.xs, cfgcopts were rewritten over with copts instead of adding copts to cfgcopts.
Comment 2 Dave Russo CLA 2011-11-09 18:55:56 EST
closing "ancient" resolved bugs