简体   繁体   English

如何为LLVM BitCode .bc文件配置备用Eclipse运行配置?

[英]How to Configure Alternate Eclipse Run Configurations - for LLVM BitCode .bc files?

Question 1: What is the proper way to create a "Run Configuration" in Eclipse, to execute an LLVM BitCode .bc file? 问题1:在Eclipse中创建“运行配置”以执行LLVM BitCode .bc文件的正确方法是什么?

And/Or: 和/或:

Question 2: What is the proper way to configure an alternate Run Configuration to output executable files, rather than .bc files, using llvm-vd, or clang++? 问题2:使用llvm-vd或clang ++配置备用运行配置以输出可执行文件而不是.bc文件的正确方法是什么?

In Eclipse: 在Eclipse中:

  1. "Run As: LLVM BitCode" “运行方式:LLVM位代码”
  2. "Run As: .exe under Windows" “运行方式:Windows下的.exe”
  3. Future: "Run As: .exe under Wine", (which would probably be similar to #1 ...) 未来:“运行方式:Wine下的.exe”(可能与#1相似...)

Notes: 笔记:

  1. By default, the Build Configuration generates .bc files. 默认情况下,生成配置生成.bc文件。
  2. In Build Settings/Build Artifact, there is not Build Artifact Type for "Executable", but just for "Static Library"--an no option to create an "Executable Build Artifact Type". 在“构建设置/构建工件”中,没有“可执行文件”的构建工件类型,而仅是“静态库”的构建工件类型-创建“可执行构建工件类型”的选项。

Toolset: 1. Eclipse's CDT with LLVM/Clang 2. MinGW-64 工具集: 1.带有LLVM / Clang的Eclipse CDT 2. MinGW-64

After fighting with this, for a while, I have come to the conclusion that with the current LLVM plugin for Eclipse, this just isn't possible, as it is very dated, and doesn't support the latest Clang Toolchain, (clang++, llc, etc), but uses the deprecated llvm-vd, etc. 经过一段时间的努力,我得出的结论是,对于当前的Eclipse LLVM插件,这是不可能的,因为它已经过时,并且不支持最新的Clang工具链((clang ++, llc等),但使用已弃用的llvm-vd等。

That being said, there may be a possibility with a regular make project, or using CMake. 话虽如此,使用常规make项目或使用CMake可能会有可能性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM