提交 46d44977 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!75 Fix Cpplint build/include_subdir

Merge pull request !75 from 李鸿章/fix_linting
......@@ -18,6 +18,7 @@ set -e
SCRIPT_BASEDIR=$(realpath "$(dirname "$0")")
THIRD_PARTY_DIR=$(realpath "$SCRIPT_BASEDIR/../../third_party")
MINDINSIGHT_DIR=$(realpath "$SCRIPT_BASEDIR/../../mindinsight")
BUILDDIR="$(dirname "$SCRIPT_BASEDIR")/build_securec"
build_securec() {
......@@ -67,7 +68,7 @@ build_crc32() {
c++ -O2 -O3 -shared -std=c++11 -fPIC -fstack-protector-all -D_FORTIFY_SOURCE=2 \
-Wno-maybe-uninitialized -Wno-unused-parameter -Wall -Wl,-z,relro,-z,now,-z,noexecstack \
-I"$THIRD_PARTY_DIR" "${PYBIND11_INCLUDES[0]}" "${PYBIND11_INCLUDES[1]}" \
-I"$MINDINSIGHT_DIR" -I"$THIRD_PARTY_DIR" "${PYBIND11_INCLUDES[0]}" "${PYBIND11_INCLUDES[1]}" \
-o "$CRC32_SO_FILE" crc32.cc "$BUILDDIR/libsecurec.a"
if [ ! -f "$CRC32_SO_FILE" ]; then
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "./crc32.h"
#include "datavisual/utils/crc32/crc32.h"
static const uint32_t crc_table_o32[CRC_TABLE_SIZE] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册