Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コマンドラインでマクロ定義を有効にする gcc の -D フラグに相当する LLVM (または clang) を探しています。
どんな指針も素晴らしいでしょう。
からclang --cc1 --help:
clang --cc1 --help
... -D <macro>=<value> Define <macro> to <value> (or 1 if <value> omitted) ...
経験則として、別の方法で証明されない限り、Clang は GCC をエミュレートすると想定してください。