Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
c79f1a29
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
c79f1a29
编写于
3月 03, 2021
作者:
sangshuduo
提交者:
GitHub
3月 03, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #5323 from taosdata/feature/sangshuduo/TD-3148-buildsystem-auto-detect-arch
Feature/sangshuduo/td 3148 buildsystem auto detect arch
上级
6fb41f3a
8f07fc1b
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
51 addition
and
22 deletion
+51
-22
cmake/platform.inc
cmake/platform.inc
+51
-22
未找到文件。
cmake/platform.inc
浏览文件 @
c79f1a29
...
...
@@ -78,29 +78,58 @@ ELSE()
EXIT
()
ENDIF
()
# if generate ARM version:
# cmake -DCPUTYPE=aarch32 .. or cmake -DCPUTYPE=aarch64
IF
(
$
{
CPUTYPE
}
MATCHES
"aarch32"
)
IF
(
"${CPUTYPE}"
STREQUAL
""
)
MESSAGE
(
STATUS
"The current platform "
$
{
CMAKE_SYSTEM_PROCESSOR
}
" is detected"
)
IF
(
CMAKE_SYSTEM_PROCESSOR
MATCHES
"(amd64)|(AMD64)"
)
MESSAGE
(
STATUS
"The current platform is amd64"
)
MESSAGE
(
STATUS
"Set CPUTYPE to x64"
)
SET
(
CPUTYPE
"x64"
)
ELSEIF
(
CMAKE_SYSTEM_PROCESSOR
MATCHES
"(x86)|(X86)"
)
MESSAGE
(
STATUS
"The current platform is x86"
)
MESSAGE
(
STATUS
"Set CPUTYPE to x86"
)
SET
(
CPUTYPE
"x32"
)
ELSEIF
(
CMAKE_SYSTEM_PROCESSOR
MATCHES
"armv7l"
)
MESSAGE
(
STATUS
"Set CPUTYPE to aarch32"
)
SET
(
CPUTYPE
"aarch32"
)
MESSAGE
(
STATUS
"Set CPUTYPE to aarch32"
)
SET
(
TD_LINUX
TRUE
)
SET
(
TD_LINUX_32
FALSE
)
SET
(
TD_ARM_32
TRUE
)
ELSEIF
(
CMAKE_SYSTEM_PROCESSOR
MATCHES
"aarch64"
)
SET
(
CPUTYPE
"aarch64"
)
MESSAGE
(
STATUS
"Set CPUTYPE to aarch64"
)
SET
(
TD_LINUX
TRUE
)
SET
(
TD_LINUX_64
FALSE
)
SET
(
TD_ARM_64
TRUE
)
ENDIF
()
ELSE
()
# if generate ARM version:
# cmake -DCPUTYPE=aarch32 .. or cmake -DCPUTYPE=aarch64
IF
(
$
{
CPUTYPE
}
MATCHES
"aarch32"
)
SET
(
TD_LINUX
TRUE
)
SET
(
TD_LINUX_32
FALSE
)
SET
(
TD_ARM_32
TRUE
)
MESSAGE
(
STATUS
"input cpuType: aarch32"
)
ELSEIF
(
$
{
CPUTYPE
}
MATCHES
"aarch64"
)
ELSEIF
(
$
{
CPUTYPE
}
MATCHES
"aarch64"
)
SET
(
TD_LINUX
TRUE
)
SET
(
TD_LINUX_64
FALSE
)
SET
(
TD_ARM_64
TRUE
)
MESSAGE
(
STATUS
"input cpuType: aarch64"
)
ELSEIF
(
$
{
CPUTYPE
}
MATCHES
"mips64"
)
ELSEIF
(
$
{
CPUTYPE
}
MATCHES
"mips64"
)
SET
(
TD_LINUX
TRUE
)
SET
(
TD_LINUX_64
FALSE
)
SET
(
TD_MIPS_64
TRUE
)
MESSAGE
(
STATUS
"input cpuType: mips64"
)
ELSEIF
(
$
{
CPUTYPE
}
MATCHES
"x64"
)
ELSEIF
(
$
{
CPUTYPE
}
MATCHES
"x64"
)
MESSAGE
(
STATUS
"input cpuType: x64"
)
ELSEIF
(
$
{
CPUTYPE
}
MATCHES
"x86"
)
ELSEIF
(
$
{
CPUTYPE
}
MATCHES
"x86"
)
MESSAGE
(
STATUS
"input cpuType: x86"
)
ELSE
()
ELSE
()
MESSAGE
(
STATUS
"input cpuType unknown "
$
{
CPUTYPE
})
ENDIF
()
ENDIF
()
# cmake -DOSTYPE=Ningsi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录