45 Star 18 Fork 127

OpenHarmony / third_party_llvm-project

 / 详情

Enable libcxx benchmark

待办的
任务 成员
创建于  
2024-02-20 15:11

【任务描述】

【解决方案】

【任务来源】

评论 (9)

yinchuang 创建了任务

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @hhj @Pavel Kosov 。如果需要调整订阅PR、Issue的变更状态,请访问链接

Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer @hhj @Pavel Kosov for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

openharmony_ci 添加了
 
waiting_for_assign
标签

按指导手册执行
输入图片说明

执行ninja -C build cxx cxxabi unwind 时报错
输入图片说明
只执行ninja -C build cxx
执行ninja cxx-benchmarks 找不到目标
输入图片说明

询问俄研同事,给出执行命令
mkdir TEST
cd TEST/
../../cmake-3.28.3-linux-x86_64/bin/cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi" ../llvm
ninja -C . cxx-benchmarks
最后执行ninja -t targets | grep check-cxx-benchmarks有返回值表示成功

执行ninja -t targets | grep check-cxx-benchmarks
输入图片说明

生成libbenchmark.a文件
输入图片说明

构建示例执行
输入图片说明

输入图片说明
但是在llvm官方文档中给出的运行benchmarks的步骤中的.out文件并没有生成

编译后生成libbenchmark.a文件
编写示例文件调用.a文件,执行后如下
输入图片说明

cmake版本不能太低,否则会报错

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
7387629 openharmony ci 1656582662
C++
1
https://gitee.com/openharmony/third_party_llvm-project.git
git@gitee.com:openharmony/third_party_llvm-project.git
openharmony
third_party_llvm-project
third_party_llvm-project

搜索帮助