Author Topic: How to remove default compiler flags  (Read 1410 times)

Offline mariusm

  • Multiple posting newcomer
  • *
  • Posts: 47
How to remove default compiler flags
« on: January 23, 2025, 11:39:40 am »
Hello,

For one project I need to remove same compiler flags which is on global settings but I do not need on this project settings.

Can I make this?

I find nothing like this Project->Build options
« Last Edit: January 23, 2025, 04:11:05 pm by mariusm »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7720
    • My Best Post
Re: How to remove default compiler flags
« Reply #1 on: January 23, 2025, 05:23:02 pm »
Hello,

For one project I need to remove same compiler flags which is on global settings but I do not need on this project settings.

Can I make this?

I find nothing like this Project->Build options

Remove the Flags from Global compiler Settings

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1673
Re: How to remove default compiler flags
« Reply #2 on: January 23, 2025, 05:53:43 pm »
You can create a copy of the compiler, remove the undesired flags from the copy and use it for the new project.