I am looking for LLVM (or clang) equivalent of gcc's -D flag which enables macro definition at commandline.
Any pointers would be great.
From clang --cc1 --help:
clang --cc1 --help
... -D <macro> Predefine the specified macro ...
As a rule of thumb, assume that Clang emulates GCC, unless proven otherwise!
1.4m articles
1.4m replys
5 comments
57.0k users