Community
Participate
Working Groups
Build Identifier: 20110615-0604 please refer to the steps to reproduce. Reproducible: Always Steps to Reproduce: I used Cygwin as the toolchains and CDT Version: Indigo Release, Build id: 20110615-0604 1. Create a C/C++ project. 2. Go to project Properties->Settings page, choose Debug configuration, set Tool Settings->Cygwin C++ Compiler->Preprocessor->Do not search system directories(-nostdinc) checked (default is not checked), then click Apply and OK button. 3. Go to the settings page again, choose [All configurations], then Apply and Cancel this time. 4. Go to the setting page, you can find -nostdinc is checked in both Debug and Release configurations.
(In reply to comment #0) I don't see anything wrong here. Perhaps there is a misunderstanding how "Apply" button works? > Steps to Reproduce: > I used Cygwin as the toolchains and CDT Version: Indigo Release, Build id: > 20110615-0604 > 1. Create a C/C++ project. > 2. Go to project Properties->Settings page, choose Debug configuration, set Tool > Settings->Cygwin C++ Compiler->Preprocessor->Do not search system > directories(-nostdinc) checked (default is not checked), then click Apply and OK > button. > 3. Go to the settings page again, choose [All configurations], then Apply and At that point, Apply button applies your change to all configurations and persists it in the project model. If you choose one specific configuration, it will be "applied" to that specific configuration. How that works under hood - when you open properties a temporary working copy of configuration is created and user changes that one. As soon as "Apply" or "OK" is pressed the changes are "applied" to the real configuration(s). Hitting "Apply" (vs "OK") lets you save the changes in the model but not leave the property pages yet. > Cancel this time. Cancel does not do anything here as the new settings have been saved with Apply button. > 4. Go to the setting page, you can find -nostdinc is checked in both Debug and > Release configurations. That is the correct behavior.