Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MegEngine 天元
MegEngine
提交
3ea00eba
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看板
提交
3ea00eba
编写于
4月 15, 2021
作者:
M
Megvii Engine Team
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(cmake): fix cmake build failed at soft link workspace
GitOrigin-RevId: 78b50a4f3a4fd0b762d39a91259f34e72997d04a
上级
a8108522
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
18 addition
and
6 deletion
+18
-6
scripts/cmake-build/cross_build_android_arm_inference.sh
scripts/cmake-build/cross_build_android_arm_inference.sh
+1
-1
scripts/cmake-build/cross_build_ios_arm_inference.sh
scripts/cmake-build/cross_build_ios_arm_inference.sh
+1
-1
scripts/cmake-build/cross_build_linux_arm_inference.sh
scripts/cmake-build/cross_build_linux_arm_inference.sh
+1
-1
scripts/cmake-build/host_build.sh
scripts/cmake-build/host_build.sh
+2
-2
scripts/cmake-build/utils/utils.sh
scripts/cmake-build/utils/utils.sh
+13
-1
未找到文件。
scripts/cmake-build/cross_build_android_arm_inference.sh
浏览文件 @
3ea00eba
...
...
@@ -111,7 +111,7 @@ function cmake_build() {
echo
"create build dir"
mkdir
-p
$BUILD_DIR
mkdir
-p
$INSTALL_DIR
cd
$BUILD_DIR
cd
_real_build_dir
$BUILD_DIR
unset
IFS
cmake
-G
"
$MAKEFILE_TYPE
Makefiles"
\
-DCMAKE_TOOLCHAIN_FILE
=
"
$NDK_ROOT
/build/cmake/android.toolchain.cmake"
\
...
...
scripts/cmake-build/cross_build_ios_arm_inference.sh
浏览文件 @
3ea00eba
...
...
@@ -108,7 +108,7 @@ function cmake_build() {
echo
"create build dir"
mkdir
-p
$BUILD_DIR
mkdir
-p
$INSTALL_DIR
cd
$BUILD_DIR
cd
_real_build_dir
$BUILD_DIR
cmake
-DCMAKE_TOOLCHAIN_FILE
=
$TOOLCHAIN
\
-DCMAKE_BUILD_TYPE
=
$BUILD_TYPE
\
-DIOS_TOOLCHAIN_ROOT
=
$TOOLCHAIN
\
...
...
scripts/cmake-build/cross_build_linux_arm_inference.sh
浏览文件 @
3ea00eba
...
...
@@ -131,7 +131,7 @@ function cmake_build() {
echo
"create build dir"
mkdir
-p
$BUILD_DIR
mkdir
-p
$INSTALL_DIR
cd
$BUILD_DIR
cd
_real_build_dir
$BUILD_DIR
cmake
-G
"
$MAKEFILE_TYPE
Makefiles"
\
-DCMAKE_C_FLAGS
=
$CMAKE_C_FLAGS
\
-DCMAKE_CXX_FLAGS
=
$CMAKE_CXX_FLAGS
\
...
...
scripts/cmake-build/host_build.sh
浏览文件 @
3ea00eba
...
...
@@ -97,7 +97,7 @@ function cmake_build() {
echo
"create build dir"
mkdir
-p
$BUILD_DIR
mkdir
-p
$INSTALL_DIR
cd
$BUILD_DIR
cd
_real_build_dir
$BUILD_DIR
cmake
\
-DCMAKE_BUILD_TYPE
=
$BUILD_TYPE
\
-DMGE_INFERENCE_ONLY
=
$MGE_INFERENCE_ONLY
\
...
...
@@ -229,7 +229,7 @@ function cmake_build_windows() {
echo
"create build dir"
mkdir
-p
$BUILD_DIR
mkdir
-p
$INSTALL_DIR
cd
$BUILD_DIR
cd
_real_build_dir
$BUILD_DIR
echo
"now try build windows native with cmake/clang-ci/Ninja/Visual Studio ....."
export
CFLAGS
=
-
$MGE_WINDOWS_BUILD_MARCH
export
CXXFLAGS
=
-
$MGE_WINDOWS_BUILD_MARCH
...
...
scripts/cmake-build/utils/utils.sh
浏览文件 @
3ea00eba
...
...
@@ -9,6 +9,18 @@ if [[ $OS =~ "NT" ]]; then
MAKEFILE_TYPE
=
"Unix"
fi
READLINK
=
readlink
if
[
$OS
=
"Darwin"
]
;
then
READLINK
=
greadlink
fi
function
cd_real_build_dir
()
{
REAL_DIR
=
$(
$READLINK
-f
$1
)
echo
"may alias dir:
$1
"
echo
"cd real build dir:
${
REAL_DIR
}
"
cd
${
REAL_DIR
}
}
function
build_flatc
()
{
BUILD_DIR
=
$1
/build_dir/host_flatc/build
INSTALL_DIR
=
$BUILD_DIR
/../install
...
...
@@ -25,7 +37,7 @@ function build_flatc() {
mkdir
-p
$BUILD_DIR
mkdir
-p
$INSTALL_DIR
cd
$BUILD_DIR
cd
_real_build_dir
$BUILD_DIR
cmake
-G
"
$MAKEFILE_TYPE
Makefiles"
\
-DCMAKE_BUILD_TYPE
=
Release
\
-DCMAKE_INSTALL_PREFIX
=
$INSTALL_DIR
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录