Bug 374731 - Cross GCC toolchain prefix not applied to modified project sub-folders
Summary: Cross GCC toolchain prefix not applied to modified project sub-folders
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-20 04:29 EDT by Paul Richards CLA
Modified: 2020-09-04 15:16 EDT (History)
2 users (show)

See Also:


Attachments
Example project (3.34 KB, application/octet-stream)
2012-03-20 04:35 EDT, Paul Richards CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Richards CLA 2012-03-20 04:29:26 EDT
Build Identifier: Version: Indigo Service Release 2 Build id: 20120216-1857

Build failure occurs after modifying GCC compiler settings for project sub-folder and attempting to rebuild.

The Cross Settings prefix does not appear to be applied to the build of files under the sub-folder, although there is no way to specify any other cross settings prefix for the sub-folder.

Should be independent of GCC tool version, however for reference the version is: 
arm-none-eabi-gcc (Sourcery CodeBench Lite 2011.09-69) 4.6.1


Reproducible: Always

Steps to Reproduce:
1. Choose New C Project
2. Select GCC toolchain
3. Finish project creation (using chosen defaults)
4. Edit Cross GCC Compiler miscellaneous settings adding (e.g.) "-mcpu=cortex-m3 -mthumb"
5. Create main.c file with dummy implementation
6. Create new folder 'Sub'
7. Add empty 'sub.c" file to sub-folder 'Sub'
8. Build project and confirm success (ignoring linker warning about entry symbol)
9. Edit Cross GCC Compiler optimization settings setting optimization level to -O1
10. Accept and verify the new adornment on the sub-folder icon
11. Build project and confirm build failure (non-prefixed gcc is invoked)
12. View console output and verify that cross settings prefix is not applied to compilation of 'sub.c' file.
Comment 1 Paul Richards CLA 2012-03-20 04:35:12 EDT
Created attachment 212899 [details]
Example project