User forums > Help

Replacing compiler settings with a build script?

<< < (6/7) > >>

colin:
Okay I'm back on looking at this today and tomorrow, but I'm curious why the IDE should care about asking for rebuild?
I shouldn't care or want the IDE to check for this if all of that checking is done using an external script, I just want to IDE to assume it will build every time and let the script skip whatever it wants.

Anyway I will re-read the comments left behind since I looked at this last time and provide any new information.

Thanks,
Colin.

oBFusCATed:
Probably to print a user friendly message like "Program is up-to-date" or something similar.

cartographer:
I was having a similar issue and came up with a work-around, so I figured I would share.

In my case I did the following:
Compiler Settings -> Copy GCC -> Name it something
Select the new compiler -> Toolchain Executables and set the following (excluding quotes):

Compiler's Installation Directory: "/"
C, C++, Dynamic Linker, Static Linker, Make Program: "true" (aka "true(1): do nothing, successfully")

Then I just made a new build target set to "Commands only" and set it to use the new compiler. That is to say, all I really did was set the compiler to a program that does nothing, for my linux distribution it was the executable true located in my root bin directory. If you don't have such a program you can easily make one, just compile "int main() {return 0;}". Note that for some reason if I just changed the toolchain for the built-in "* No Compiler *" codeblocks would just crash when I tried to compile, I had to duplicate an existing compiler for some reason. Hope this helps.

oBFusCATed:
cartographer: Can you post the exact steps needed to make C::B crash?

cartographer:

--- Quote from: oBFusCATed on April 22, 2014, 09:02:09 pm ---cartographer: Can you post the exact steps needed to make C::B crash?

--- End quote ---
Sure, I've also attached the debug report generated when it crashes. Using Lubuntu 14.04 LTS and code::blocks 13.12.

Steps:
File->New->Project->Console application
Language: C++
Compiler: *No Compiler* (reset to default settings)

Settings->Compiler..->*No Compiler*->Toolchain executables
Options: See attached toolchain.png

Build->Build (crash here)


[attachment deleted by admin]

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version