lite_build_config.h 651 字节
Newer Older
M
Megvii Engine Team 已提交
1 2
//! this file always for bazel

3 4 5 6 7 8 9 10
#ifndef _HEADER_LITE_BUILD_CONFIG
#define _HEADER_LITE_BUILD_CONFIG

#ifndef LITE_ENABLE_LOGGING
#define LITE_ENABLE_LOGGING 1
#endif

#ifndef LITE_ENABLE_EXCEPTION
M
Megvii Engine Team 已提交
11
#if __cpp_exceptions || __EXCEPTIONS || (defined(_MSC_VER) && defined(_CPPUNWIND))
12 13 14 15 16 17 18 19 20 21 22 23 24
#define LITE_ENABLE_EXCEPTION 1
#else
#define LITE_ENABLE_EXCEPTION 0
#endif
#endif

#ifndef LITE_WITH_CUDA
#define LITE_WITH_CUDA 0
#endif

#ifndef LITE_ASSERT_LOC
#define LITE_ASSERT_LOC 1
#endif
M
Megvii Engine Team 已提交
25 26 27 28 29 30 31 32

#ifndef LITE_BUILD_WITH_MGE
#define LITE_BUILD_WITH_MGE 1
#endif

#ifndef LITE_BUILD_WITH_RKNPU
#define LITE_BUILD_WITH_RKNPU 0
#endif
33
#endif  // _HEADER_LITE_BUILD_CONFIG