codelite icon indicating copy to clipboard operation
codelite copied to clipboard

[Bug]: problems of release building

Open c-plus opened this issue 6 months ago • 6 comments

What happened?

A bug happened!

Version

18.1.0

Operating system

Other

Steps to reproduce

1. build a default console project test1 of "hello world!" of debug. size of exe file is 78K.
2. switch to release configuration. clean then rebuild. size of exe file is still 78K. No new exe file is created.
3. check the release configuration. compiler option is -O2;-Wall, linker option is blank. So i add -s to linker option. and then delete the exe file. and then clean and rebuild. new exe file is created, and file size is 39K. No debug info in exe file.
4. I change linker back and don't delete the exe file. and then clean and rebuild. No new exe file is created.
there is two bugs:
①default release configuration still build exe file with debug info. Need change default linker option.
②rebuild project can't create new exe file.

Relevant log output


c-plus avatar Aug 22 '25 04:08 c-plus

find the problem reason. my platform is win7. Codelite use "rm -f -r Release/" to carry out clean command.

c-plus avatar Aug 22 '25 06:08 c-plus

Where to change "rm" to "del" in codelite? It maybe work.

c-plus avatar Aug 22 '25 07:08 c-plus

Which Makefile generator do you use (in Project settinggs)?

Jarod42 avatar Aug 22 '25 17:08 Jarod42

codelite makefile generator. And I tried change to GNU makefile one step build and default. It doesn't work.

c-plus avatar Aug 23 '25 02:08 c-plus

Codelite provides its own rm.exe file. Check your PATH to see if rm is found from elsewhere.

Jarod42 avatar Aug 23 '25 10:08 Jarod42

I added "C:\Program Files\CodeLite" to PATH envionment variable of my PC. And I also added CodeLiteDir envionment variable of codelite. But the problem still happend.

rm -f -r ../build-Release/test1 mingw32-make[1]: *** [test1.mk:109: clean] Error -1073741511 mingw32-make[1]: Leaving directory 'C:/Users/Foryou/Documents/projectCL/test1' mingw32-make: *** [Makefile:8: clean] Error 2

c-plus avatar Aug 25 '25 09:08 c-plus