llvm-ir-cmake-utils icon indicating copy to clipboard operation
llvm-ir-cmake-utils copied to clipboard

How to support px4 compilation?

Open Lqs66 opened this issue 2 years ago • 2 comments
trafficstars

hello, I'm trying to generate llvm IR in px4 compilation using your tool, I imported cmake as you requested and added include to CMakeLists.txt, during cmake I see the console output - LLVM IR Utils. finally I run make to compile but it doesn't work until I don't see IR until the binary is generated. Does your tool support px4 compilation?

Lqs66 avatar Mar 02 '23 03:03 Lqs66

Hello @Lqs66,

I'm not familiar px4; does it use llvm/clang? what is the source language?

Internally, llvm-ir-cmake-utils depend on the source language as required by cmake to generate LLVM IR. You can see this roughly here.

If the px4 compilation uses something custom, then maybe you can override those, but for CMake, it needs to be able to detect the LINKER_LANGUAGE.

compor avatar Mar 03 '23 20:03 compor