Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332968

Summary: Cannot set profile specific cfgcopts
Product: [Technology] RTSC Reporter: Ramsey Harris <ramsey>
Component: TargetsAssignee: Sasha Slijepcevic <sascha>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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