diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2018-12-03 13:58:32 +0000 |
---|---|---|
committer | Michalis Spyrou <michalis.spyrou@arm.com> | 2018-12-04 15:57:03 +0000 |
commit | 7043d3667a14eae46fc0b16aa1cf745eab9f38b3 (patch) | |
tree | da81c6b470a2337d9f4ae0053798a75d9b0a4f71 /arm_compute/graph | |
parent | f554be787e1875ed4f8094cee4146f989dfb85f6 (diff) | |
download | ComputeLibrary-7043d3667a14eae46fc0b16aa1cf745eab9f38b3.tar.gz |
COMPMID-1824 Disable logging completely when building with logging=0
Change-Id: Ie0d5387c0546045e14e62c84c03894a9b0339585
Reviewed-on: https://review.mlplatform.org/335
Reviewed-by: Pablo Marquez <pablo.tello@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/graph')
-rw-r--r-- | arm_compute/graph/Logger.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arm_compute/graph/Logger.h b/arm_compute/graph/Logger.h index 8b87f47b3d..8946d82a51 100644 --- a/arm_compute/graph/Logger.h +++ b/arm_compute/graph/Logger.h @@ -26,6 +26,7 @@ #include "arm_compute/core/utils/logging/Macros.h" +#ifdef ARM_COMPUTE_LOGGING_ENABLED /** Create a default core logger * * @note It will eventually create all default loggers in don't exist @@ -38,6 +39,9 @@ arm_compute::logging::LoggerRegistry::get().create_reserved_loggers(); \ } \ } while(false) +#else /* ARM_COMPUTE_LOGGING_ENABLED */ +#define ARM_COMPUTE_CREATE_DEFAULT_GRAPH_LOGGER() +#endif /* ARM_COMPUTE_LOGGING_ENABLED */ #define ARM_COMPUTE_LOG_GRAPH(log_level, x) \ ARM_COMPUTE_CREATE_DEFAULT_GRAPH_LOGGER(); \ |