Add an argument to Makefile.example to enable building debug/release version only
Right now make all from the bootstrap directory builds both debug and release builds of CPF and all the components (llvm, noelle, etc)
On my system, this quickly exhausted all the available disk quota.
Please add a makefile argument allowing to choose either debug or release configuration to build.
Yours, Andrey === Advanced Software Technology Lab Huawei
The whole compilation takes 31G on my machine, and most of which is used by compiling LLVM.
Currently, the framework is far from stable so compiling both DEBUG and RELEASE is still crucial for us and as you might find is pretty much hardcoded in the Makefiles. It will take some effort to decouple this and I'll put "adding argument to compile release or debug version only" as a low priority task, and we will work on it after September 2021.
As a workaround, here are the step by step guide to avoid build llvm in debug mode (saves 20.8G; will use around 10G instead of 31G to build the whole toolchain after this change).
- Follow the Dockerfile till apply patch (line 23)
cp /home/cpf-workspace/cpf/bootstrap/Makefile.llvm /home/cpf-workspace/make -f Makefile.llvm llvm-objects-release- In
Makefile(copied from Makefile.example), changecompile-llvm=1tocompile-llvm=0and change bothllvm-install-dir-debugandllvm-install-dir-releaseto/home/cpf-workspace/llvm-install-release - Run
make allwith the modified Makefile
The whole compilation takes 31G on my machine, and most of which is used by compiling LLVM.
Currently, the framework is far from stable so compiling both DEBUG and RELEASE is still crucial for us and as you might find is pretty much hardcoded in the Makefiles. It will take some effort to decouple this and I'll put "adding argument to compile release or debug version only" as a low priority task, and we will work on it after September 2021.
OK, got it. Makes sense.
As a workaround, here are the step by step guide to avoid build llvm in debug mode (saves 20.8G; will use around 10G instead of 31G to build the whole toolchain after this change).
- Follow the Dockerfile till apply patch (line 23)
cp /home/cpf-workspace/cpf/bootstrap/Makefile.llvm /home/cpf-workspace/make -f Makefile.llvm llvm-objects-release- In
Makefile(copied from Makefile.example), changecompile-llvm=1tocompile-llvm=0and change bothllvm-install-dir-debugandllvm-install-dir-releaseto/home/cpf-workspace/llvm-install-release- Run
make allwith the modified Makefile
Thanks!