Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MegEngine 天元
MegEngine
提交
21345d6b
MegEngine
项目概览
MegEngine 天元
/
MegEngine
大约 1 年 前同步成功
通知
399
Star
4705
Fork
582
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
MegEngine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
21345d6b
编写于
12月 10, 2021
作者:
M
Megvii Engine Team
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(cmake): only add -Werror=unused-parameter at CI env
GitOrigin-RevId: 380f7f6ce9129ecf63f3cb0e92fdd6628fa4d07b
上级
744efe72
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
22 addition
and
16 deletion
+22
-16
scripts/cmake-build/cross_build_linux_arm_inference.sh
scripts/cmake-build/cross_build_linux_arm_inference.sh
+0
-10
toolchains/aarch64-linux-gnu.toolchain.cmake
toolchains/aarch64-linux-gnu.toolchain.cmake
+4
-0
toolchains/aarch64-none-linux-gnu.toolchain.cmake
toolchains/aarch64-none-linux-gnu.toolchain.cmake
+6
-2
toolchains/arm-linux-gnueabi.toolchain.cmake
toolchains/arm-linux-gnueabi.toolchain.cmake
+6
-2
toolchains/arm-linux-gnueabihf.toolchain.cmake
toolchains/arm-linux-gnueabihf.toolchain.cmake
+6
-2
未找到文件。
scripts/cmake-build/cross_build_linux_arm_inference.sh
浏览文件 @
21345d6b
...
...
@@ -11,8 +11,6 @@ REMOVE_OLD_BUILD=false
NINJA_VERBOSE
=
OFF
NINJA_DRY_RUN
=
OFF
SPECIFIED_TARGET
=
"install/strip"
CMAKE_C_FLAGS
=
"-Wno-psabi"
CMAKE_CXX_FLAGS
=
"-Wno-psabi"
READLINK
=
readlink
OS
=
$(
uname
-s
)
...
...
@@ -140,12 +138,6 @@ if [ $MGE_WITH_CUDA = "ON" ] && [ ! $ARCH = "arm64-v8a" ];then
exit
-1
fi
if
[
$MGE_WITH_CUDA
=
"OFF"
]
;
then
echo
"config -Werror=unused-parameter when cuda off for CI check"
CMAKE_C_FLAGS
=
"-Werror=unused-parameter -Wno-psabi"
CMAKE_CXX_FLAGS
=
"-Werror=unused-parameter -Wno-psabi"
fi
function
cmake_build
()
{
BUILD_DIR
=
$SRC_DIR
/build_dir/gnu-linux/MGE_WITH_CUDA_
$3
/
$1
/
$BUILD_TYPE
/build
INSTALL_DIR
=
$BUILD_DIR
/../install
...
...
@@ -163,8 +155,6 @@ function cmake_build() {
mkdir
-p
$INSTALL_DIR
cd_real_build_dir
$BUILD_DIR
bash
-c
"cmake -G Ninja
\
-DCMAKE_C_FLAGS=
$CMAKE_C_FLAGS
\
-DCMAKE_CXX_FLAGS=
$CMAKE_CXX_FLAGS
\
-DCMAKE_TOOLCHAIN_FILE=
$TOOLCHAIN
\
-DCMAKE_BUILD_TYPE=
$BUILD_TYPE
\
-DMGE_INFERENCE_ONLY=ON
\
...
...
toolchains/aarch64-linux-gnu.toolchain.cmake
浏览文件 @
21345d6b
set
(
ARM_CROSS_BUILD_ARCH aarch64
)
set
(
CMAKE_C_COMPILER
"aarch64-linux-gnu-gcc"
)
set
(
CMAKE_CXX_COMPILER
"aarch64-linux-gnu-g++"
)
if
(
"$ENV{FORCE_CHECK_UNUSED_PARAMETER}"
STREQUAL
"true"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Werror=unused-parameter"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Werror=unused-parameter"
)
endif
()
set
(
CMAKE_STRIP
"aarch64-linux-gnu-strip"
)
set
(
CMAKE_SYSTEM_PROCESSOR aarch64
)
set
(
CMAKE_SYSTEM_NAME Linux
)
toolchains/aarch64-none-linux-gnu.toolchain.cmake
浏览文件 @
21345d6b
set
(
ARM_CROSS_BUILD_ARCH aarch64
)
set
(
CMAKE_C_COMPILER
"aarch64-none-linux-gnu-gcc"
)
set
(
CMAKE_CXX_COMPILER
"aarch64-none-linux-gnu-g++"
)
set
(
CMAKE_C_FLAGS
"-Werror=unused-parameter -Wno-psabi"
)
set
(
CMAKE_CXX_FLAGS
"-Werror=unused-parameter -Wno-psabi"
)
set
(
CMAKE_C_FLAGS
"-Wno-psabi"
)
set
(
CMAKE_CXX_FLAGS
"-Wno-psabi"
)
if
(
"$ENV{FORCE_CHECK_UNUSED_PARAMETER}"
STREQUAL
"true"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Werror=unused-parameter"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Werror=unused-parameter"
)
endif
()
set
(
CMAKE_STRIP
"aarch64-none-linux-gnu-strip"
)
set
(
CMAKE_SYSTEM_PROCESSOR aarch64
)
set
(
CMAKE_SYSTEM_NAME Linux
)
toolchains/arm-linux-gnueabi.toolchain.cmake
浏览文件 @
21345d6b
set
(
ARM_CROSS_BUILD_ARCH armv7
)
set
(
CMAKE_C_COMPILER
"arm-linux-gnueabi-gcc"
)
set
(
CMAKE_CXX_COMPILER
"arm-linux-gnueabi-g++"
)
set
(
CMAKE_C_FLAGS
"-mfloat-abi=softfp -mfpu=neon-vfpv4 -Werror=unused-parameter -Wno-psabi"
)
set
(
CMAKE_CXX_FLAGS
"-mfloat-abi=softfp -mfpu=neon-vfpv4 -Werror=unused-parameter -Wno-psabi"
)
set
(
CMAKE_C_FLAGS
"-mfloat-abi=softfp -mfpu=neon-vfpv4 -Wno-psabi"
)
set
(
CMAKE_CXX_FLAGS
"-mfloat-abi=softfp -mfpu=neon-vfpv4 -Wno-psabi"
)
if
(
"$ENV{FORCE_CHECK_UNUSED_PARAMETER}"
STREQUAL
"true"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Werror=unused-parameter"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Werror=unused-parameter"
)
endif
()
set
(
CMAKE_STRIP
"arm-linux-gnueabi-strip"
)
set
(
CMAKE_SYSTEM_PROCESSOR armv7
)
set
(
CMAKE_SYSTEM_NAME Linux
)
toolchains/arm-linux-gnueabihf.toolchain.cmake
浏览文件 @
21345d6b
set
(
ARM_CROSS_BUILD_ARCH armv7
)
set
(
CMAKE_C_COMPILER
"arm-linux-gnueabihf-gcc"
)
set
(
CMAKE_CXX_COMPILER
"arm-linux-gnueabihf-g++"
)
set
(
CMAKE_C_FLAGS
"-mfloat-abi=hard -mfpu=neon-vfpv4 -Werror=unused-parameter -Wno-psabi"
)
set
(
CMAKE_CXX_FLAGS
"-mfloat-abi=hard -mfpu=neon-vfpv4 -Werror=unused-parameter -Wno-psabi"
)
set
(
CMAKE_C_FLAGS
"-mfloat-abi=hard -mfpu=neon-vfpv4 -Wno-psabi"
)
set
(
CMAKE_CXX_FLAGS
"-mfloat-abi=hard -mfpu=neon-vfpv4 -Wno-psabi"
)
if
(
"$ENV{FORCE_CHECK_UNUSED_PARAMETER}"
STREQUAL
"true"
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Werror=unused-parameter"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Werror=unused-parameter"
)
endif
()
set
(
CMAKE_STRIP
"arm-linux-gnueabihf-strip"
)
set
(
CMAKE_SYSTEM_PROCESSOR armv7
)
set
(
CMAKE_SYSTEM_NAME Linux
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录