Skip to content

Latest commit

 

History

History
75 lines (74 loc) · 7.78 KB

clang-android-prop-page.md

File metadata and controls

75 lines (74 loc) · 7.78 KB
descriptiontitlems.datems.assetidf1_keywords
Learn more about: Clang project properties (Android C++)
Clang Project Properties (Android C++)
10/23/2017
663140ea-a568-472b-a79a-dfea8818e06a
VC.Project.VCClangCompilerTool.AdditionalIncludeDirectories
VC.Project.VCClangCompilerTool.DebugInformationFormat
VC.Project.VCClangCompilerTool.ObjectFile
VC.Project.VCClangCompilerTool.WarningLevel
VC.Project.VCClangCompilerTool.WarnAsError
VC.Project.VCClangCompilerTool.Verbose
VC.Project.VCClangCompilerTool.Optimization
VC.Project.VCClangCompilerTool.StrictAliasing
VC.Project.VCClangCompilerTool.OmitFramePointers
VC.Project.VCClangCompilerTool.ExceptionHandling
VC.Project.VCClangCompilerTool.EnableFunctionLevelLinking
VC.Project.VCClangCompilerTool.DataLevelLinking
VC.Project.VCClangCompilerTool.DataLevelLinking
VC.Project.VCClangCompilerTool.FloatABI
VC.Project.VCClangCompilerTool.BufferSecurityCheck
VC.Project.VCClangCompilerTool.PIC
VC.Project.VCClangCompilerTool.UseShortEnums
VC.Project.VCClangCompilerTool.RuntimeTypeInfo
VC.Project.VCClangCompilerTool.CLanguageStandard
VC.Project.VCClangCompilerTool.CppLanguageStandard
VC.Project.VCClangCompilerTool.PreprocessorDefinitions
VC.Project.VCClangCompilerTool.UndefinePreprocessorDefinitions
VC.Project.VCClangCompilerTool.UndefineAllPreprocessorDefinitions
VC.Project.VCClangCompilerTool.ShowIncludes
VC.Project.VCClangCompilerTool.PrecompiledHeader
VC.Project.VCClangCompilerTool.PrecompiledHeaderFile
VC.Project.VCClangCompilerTool.PrecompiledHeaderOutputFileDirectory
VC.Project.VCClangCompilerTool.PrecompiledHeaderCompileAs
VC.Project.VCClangCompilerTool.CompileAs
VC.Project.VCClangCompilerTool.ForcedIncludeFiles
VC.Project.VCClangCompilerTool.MultiProcessorCompilation
VC.Project.VCClangCompilerTool.AdditionalOptionsPage

Clang project properties (Android C++)

PropertyDescriptionChoices
Additional Include DirectoriesSpecifies one or more directories to add to the include path; separate with semi-colons if more than one. (-Ipath).
Debug Information FormatSpecifies the type of debugging information generated by the compiler.None - Produces no debugging information, so compilation may be faster.
Full Debug Information (DWARF2) - Generate DWARF2 debug information.
Line Number Information - Generate Line Number information only.
Object File NameSpecifies a name to override the default object file name; can be file or directory name. (/Foname).
Warning LevelSelect how strict you want the compiler to be about code errors. Other flags should be added directly to Additional Options. (/w, /Weverything).Turn Off All Warnings - Disables all compiler warnings.
EnableAllWarnings - Enables all warnings, including any disabled by default.
Treat Warnings As ErrorsTreats all compiler warnings as errors. For a new project, it may be best to use /WX in all compilations; resolving all warnings will ensure the fewest possible hard-to-find code defects.
Enable Verbose modeShow commands to run and use verbose output.
OptimizationSpecifies the optimization level for the application.Custom - Custom optimization.
Disabled - Disable optimization.
Minimize Size - Optimize for size.
Maximize Speed - Optimize for speed.
Full Optimization - Expensive optimizations.
Strict AliasingAssume the strictest aliasing rules. An object of one type is never assumed to be at the same address as a different type object.
Omit Frame PointerSuppresses creation of frame pointers on the call stack.
Enable C++ ExceptionsSpecifies the model of exception handling to be used by the compiler.No - Disable exception handling.
Yes - Enable exception handling.
Unwind Tables - Generates any needed static data, but doesn't affect the code generated.
Enable Function-Level LinkingAllows the compiler to package individual functions in the form of packaged functions (COMDATs). Required for edit and continue to work. (ffunction-sections).
Enable Data-Level LinkingEnables linker optimizations to remove unused data by emitting each data item in a separate section.
Enable Advanced SIMD(Neon)Enables code generation for NEON floating point hardware. Only applicable to ARM architecture.
Floating-point ABISelection option to choose the floating point ABI.Soft - 'Soft' causes compiler to generate output containing library calls for floating-point operations.
SoftFP - 'SoftFP' allows the generation of code using hardware floating-point instructions, but still uses the soft-float calling conventions.
Hard - 'Hard' allows generation of floating-point instructions and uses FPU-specific calling conventions.
Security CheckThe Security Check helps detect stack-buffer over-runs, a common attempted attack upon a program's security. (fstack-protector).Disable Security Check - Disable Security Check.
Enable Security Check - Enable Security Check. (fstack-protector)
Position Independent CodeGenerate position-independent code (PIC) for use in a shared library.
Use Short EnumsEnum type uses only as many bytes required by input set of possible values.
Enable Run-Time Type InformationAdds code for checking C++ object types at run time (runtime type information). (frtti, fno-rtti)
C Language StandardDetermines the C language standard.Default
C89 - C89 Language Standard.
C99 - C99 Language Standard.
C11 - C11 Language Standard.
C99 (GNU Dialect) - C99 (GNU Dialect) Language Standard.
C11 (GNU Dialect) - C11 (GNU Dialect) Language Standard.
C++ Language StandardDetermines the C++ language standard.Default
C++03 - C++03 Language Standard.
C++11 - C++11 Language Standard.
C++14 - C++14 Language Standard.
C++03 (GNU Dialect) - C++03 (GNU Dialect) Language Standard.
C++11 (GNU Dialect) - C++11 (GNU Dialect) Language Standard.
C++14 (GNU Dialect) - C++14 (GNU Dialect) Language Standard.
Preprocessor DefinitionsDefines preprocessing symbols for your source file. (-D)
Undefine Preprocessor DefinitionsSpecifies one or more undefines to the preprocessor. (-U macro)
Undefine All Preprocessor DefinitionsUndefine all previously defined preprocessor values. (-undef)
Show IncludesGenerates a list of include files with compiler output. (-H)
Precompiled HeaderCreate/Use Precompiled Header: Enables creation or use of a precompiled header during the build.Use - Use a Precompiled Header.
Not using Precompiled Headers - Not using a Precompiled Header.
Precompiled Header FileSpecifies header file name to use for precompiled header file. This file is also added to 'Forced Include Files' during build
Precompiled Header Output File DirectorySpecifies the directory for the generated precompiled header. This directory is also added to 'Additional Include Directories' during build
Compile Precompiled Header AsSelect compile language option for precompiled header file (-x c-header, -x c++-header).Compile as C Code - Compile as C Code.
Compile as C++ Code - Compile as C++ Code.
Compile AsSelect compile language option for .c and .cpp files. 'Default' will detect based on .c or .cpp extension. (-x c, -x c++)Default - Default.
Compile as C Code - Compile as C Code.
Compile as C++ Code - Compile as C++ Code.
Forced Include Filesone or more forced include files. (-include name)
Multi-processor CompilationMulti-processor Compilation.
Additional OptionsAdditional Options.
close