We're trying to get the -MJ compilation database option to work when using clang as the compiler. I've tried a few variations but always get error: unknown argument. I've also tried wrapping with the -Xclang option but no luck.
The incantation looks like this
$SEGGER_PATH/llvm/bin/clang -cc1 [options] [file] -MJ file.o.json
Has anyone been able to make this work? I'm wondering what the cc1 option does since it does not appear in the --help menu.
The incantation looks like this
$SEGGER_PATH/llvm/bin/clang -cc1 [options] [file] -MJ file.o.json
Has anyone been able to make this work? I'm wondering what the cc1 option does since it does not appear in the --help menu.