Compile flags (include paths, preprocessor defines etc.) More...
#include <Build.h>
Public Member Functions | |
bool | disableWarnings (Span< const uint32_t > number) |
Disable a warning for MSVC. | |
bool | disableWarnings (Span< const StringView > name) |
Disable a warning for non-MSVC compiler. | |
bool | disableClangWarnings (Span< const StringView > name) |
Disable a warning for Clang. | |
bool | disableGCCWarnings (Span< const StringView > name) |
Disable a warning for GCC. | |
bool | addIncludePaths (Span< const StringView > includePaths) |
Adds paths to include paths list. | |
bool | addDefines (Span< const StringView > defines) |
Adds some pre-processor defines. | |
Static Public Member Functions | |
static Result | merge (Span< const CompileFlags * > opinions, CompileFlags &flags) |
Merges opinions about flags into target flags. | |
Public Attributes | |
Vector< String > | includePaths |
Include search paths list. | |
Vector< String > | defines |
Preprocessor defines list. | |
Vector< Warning > | warnings |
Warnings list. | |
Parameter< Optimization::Type > | optimizationLevel = Optimization::Release |
Optimization level. | |
Parameter< bool > | enableASAN = false |
Enable Address Sanitizer. | |
Parameter< bool > | enableRTTI = false |
Enable C++ Runtime Type Identification. | |
Parameter< bool > | enableExceptions = false |
Enable C++ Exceptions. | |
Parameter< bool > | enableStdCpp = false |
Enable and include C++ Standard Library. | |
Parameter< bool > | enableCoverage = false |
Enables code coverage instrumentation. | |
Friends | |
struct | LinkFlags |
Compile flags (include paths, preprocessor defines etc.)
|
nodiscard |
Adds some pre-processor defines.
|
nodiscard |
Adds paths to include paths list.
|
nodiscard |
Disable a warning for Clang.
|
nodiscard |
Disable a warning for GCC.
|
nodiscard |
Disable a warning for non-MSVC compiler.
Disable a warning for MSVC.
|
static |
Merges opinions about flags into target flags.
opinions | Opinions about flags from strongest to weakest |
flags | Output flags |
Parameter<bool> SC::Build::CompileFlags::enableASAN = false |
Enable Address Sanitizer.
Parameter<bool> SC::Build::CompileFlags::enableCoverage = false |
Enables code coverage instrumentation.
Parameter<bool> SC::Build::CompileFlags::enableExceptions = false |
Enable C++ Exceptions.
Parameter<bool> SC::Build::CompileFlags::enableRTTI = false |
Enable C++ Runtime Type Identification.
Parameter<bool> SC::Build::CompileFlags::enableStdCpp = false |
Enable and include C++ Standard Library.
Parameter<Optimization::Type> SC::Build::CompileFlags::optimizationLevel = Optimization::Release |
Optimization level.