[cfe-dev] DEBUG macro not working in Clang

Friedman, Eli via cfe-dev cfe-dev at lists.llvm.org
Thu Sep 14 18:16:43 PDT 2017


On 9/14/2017 6:01 PM, George Karpenkov via cfe-dev wrote:
> Hi All,
>
> I wasn’t able to get the DEBUG macro defined in llvm/lib/Support/Debug.[h|cpp] and documented in LLVM Programmer’s Manual
> to work with Clang, either through driver or through the frontend:
>
> clang -cc1 -debug
>
> dies with “no such option”,
>
> and
>
> clang —debug
>
> runs, but the option is ignored.

You want "clang -mllvm -debug".

-Eli

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project




More information about the cfe-dev mailing list