Clang Compiler Options
Introduction
|Option|What is it?|
|:—|:—|
|-F<arg>
|Add directory to framework include search path|
|-o<file>
|Write output file to <file>
|
|--save-temps=<arg>
|Save intermediate compilation results|
|-v, --verbose
|Show commands to run and use verbose output|
|--version
|Show version information|
|-w, --no-warnings
|Suppress all warnings|
|-x<language>
|Treat subsequent input files as having type <language>
|
Actions
|Option|What is it?|
|:—|:—|
|-E, --preprocess
|Only run the preprocessor|
|-S, --assemble
|preprocessor + compilation|
|-c, --compile
|preprocessor + compilation + assemble|
Preprocessor Flags
|Option|What is it?|
|:—|:—|
|-I<dir>, --include-directory=<arg>
|Add directory to include search path|
Diagnotics Flags
|Option|What is it?|
|:—|:—|
|-W<warning>
|Enable specified warning|
Linker Flags
|Option|What is it?|
|:—|:—|
|-L<dir>, --library-directory=<arg>
|Add directory to library search path|