[Bug]: problems of release building
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
find the problem reason. my platform is win7. Codelite use "rm -f -r Release/" to carry out clean command.
Where to change "rm" to "del" in codelite? It maybe work.
Which Makefile generator do you use (in Project settinggs)?
codelite makefile generator. And I tried change to GNU makefile one step build and default. It doesn't work.
Codelite provides its own rm.exe file.
Check your PATH to see if rm is found from elsewhere.
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