Author Topic: Disable dependencies check  (Read 3170 times)

Offline Temtaime

  • Single posting newcomer
  • *
  • Posts: 4
Disable dependencies check
« on: February 04, 2015, 02:56:45 pm »
Hi !
I cannot find a checkbox to disable dependencies check on compilation.

If A includes B and i've changed B, then codeblocks compiles both A and B, but i want to compile only changed files.

How i can that obtain ?
Thanks for a reply.
« Last Edit: February 04, 2015, 03:05:12 pm by Temtaime »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Disable dependencies check
« Reply #1 on: February 04, 2015, 03:34:26 pm »
This is not supported because its dangerous and will sooner or later lead to errors.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Temtaime

  • Single posting newcomer
  • *
  • Posts: 4
Re: Disable dependencies check
« Reply #2 on: February 04, 2015, 03:57:40 pm »
I request that feature.
I have a large project written in D. It contains 40+ files with multiple dependencies.

I often change functions bodies in some files. But when i expect to compile 1-2 files while the project is being built, it recompiles almost all the files. It wastes the time.
Furthermore if i change for example functions arguments codeblocks sometimes unable to properly resolve dependencies and it leads to linker errors. I need to rebuild all the project by myself.

I want to disable that usefulless and buggy feature to save my time.
« Last Edit: February 04, 2015, 06:03:48 pm by Temtaime »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Disable dependencies check
« Reply #3 on: February 04, 2015, 06:19:33 pm »
Have you tried to use the "Project->Compile current file" command?
If the dependencies break in a C/C++ please post an example project.
If the dependencies break in a D project please post patches! :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Disable dependencies check
« Reply #4 on: February 04, 2015, 09:59:25 pm »
I have a large project written in D.
As C::B is a C/C++ IDE the dependencies check won't work for D. You forgot to mention this important information in the first place!

However, it can be disabled, I just really didn't see a use-case. I'll see what I can do. please report as a feature request at source forge so it won't get lost (and also post a link to that FR here).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Disable dependencies check
« Reply #5 on: February 05, 2015, 10:15:45 am »
I don't know anything about how D works, but in C or C++, the statement "A includes B and I have changed B" means that you have changed A.

Insofar, this feature request is nonsensical (not just "dangerous")  from a C or C++ point of view (though I don't know, it might be a valid thing to do in D?).
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Disable dependencies check
« Reply #6 on: February 05, 2015, 08:39:05 pm »
I don't know anything about how D works, but in C or C++, the statement "A includes B and I have changed B" means that you have changed A.
Well I agree with you on that but I know D not enough to be sure it is. However, I know that the dependency checker was not designed nor validated at all if against "D". Hence that it works at all is that "by accident" there is obviously an "include" statement in D.
As C::B meanwhile supports a range of options you should be able to disable components not designed for the target language.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Disable dependencies check
« Reply #7 on: February 06, 2015, 11:40:14 am »
OK, I've implemented this in my local version and will try if it breaks something...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ