How to specify make build command for a Makefile Project in CLION?

Answered

I'm trying to build llama.cpp in CLION.  To do this, I need to specify: 
make GGML_USE_ACCELERATE=1 GGML_NO_METAL=1 GGML_USE_BLAS=1 -j
I've set these both as environment variables in targets, and as arguments in the Makefile preferences, but when I have CLION build the project, the result is as if it is just issuing “make” with no arguments.

When I try building externally, it says “no local variables available” even though I set the -O2 -g option and can set a breakpoint.  So I'm hoping if I can get CLION to make it correctly internally it will be able to see variables?

Any advice is greatly appreciated.
Thank you.
- Jeff

0
1 comment

Hello!

You can specify additional build options in the Makefile settings: File | Settings | Build, Execution, Deployment | Makefile > Build options.

0

Please sign in to leave a comment.