Clean formatting of temporary files after build

After building the boost library, the main directory is ~ 9 GB. How to delete temporary / intermediate files (and save compiled library files)?

I am using Windows for my project.

+5
source share
2 answers

Instead of cleaning, I can recommend using

./b2 --build-dir=/path/to/temp/combustible 

for assembly. This puts all intermediate / temporary files in a separate place. I always put it in tmpfs ("ram ram"), so it went after a reboot anyway. But you can trivially just remove this build-dir as soon as you lose interest.

The approach works on all platforms. You can store intermediate products until all of your builds are completed to maximize the use of shared intermediate files.

+3
source

Use the stage command and then delete the intermediate files like

 bjam ... --stagedir=... stage erase /q /s bin.v2 
+1
source

Source: https://habr.com/ru/post/1233062/


All Articles