提交 3345f5b9 编写于 作者: L Liangliang He

Fix unxepected ccache miss

上级 2a1418e6
stages: stages:
- prepare
- linting - linting
- build - build
- test - test
- extra - extra
setenv:
stage: prepare
script:
- export CCACHE_NOHASHDIR=1
- export CCACHE_BASEDIR=${CI_PROJECT_DIR}
cpplint: cpplint:
stage: linting stage: linting
script: script:
......
...@@ -42,7 +42,9 @@ if(MACE_ENABLE_OPT_SIZE) ...@@ -42,7 +42,9 @@ if(MACE_ENABLE_OPT_SIZE)
endif(MACE_ENABLE_OPT_SIZE) endif(MACE_ENABLE_OPT_SIZE)
# flags apply only to mace code (third_party excluded) # flags apply only to mace code (third_party excluded)
set(MACE_CODE_CC_FLAGS "${MACE_CODE_CC_FLAGS} -Wall -Werror") # -Wno-error=unused-command-line-argument: official Android toolchain contains
# unsupported argument and will break ccache preprocessor
set(MACE_CODE_CC_FLAGS "${MACE_CODE_CC_FLAGS} -Wall -Werror -Wno-error=unused-command-line-argument")
set(MACE_CODE_CC_FLAGS "${MACE_CODE_CC_FLAGS} -std=c++11 -D_GLIBCXX_USE_C99_MATH_TR1") set(MACE_CODE_CC_FLAGS "${MACE_CODE_CC_FLAGS} -std=c++11 -D_GLIBCXX_USE_C99_MATH_TR1")
if(IOS) if(IOS)
......
...@@ -100,7 +100,6 @@ inline void QuantizeMultiplier(double multiplier, ...@@ -100,7 +100,6 @@ inline void QuantizeMultiplier(double multiplier,
++*shift; ++*shift;
} }
*output_multiplier = static_cast<int32_t>(qint); *output_multiplier = static_cast<int32_t>(qint);
MACE_CHECK(*output_multiplier <= std::numeric_limits<int32_t>::max());
} }
inline void GetOutputMultiplierAndShift( inline void GetOutputMultiplierAndShift(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册