SSlava Zakharin[flang] Handle Flang examples consistently with LLVM.
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[flang] Handle Flang examples consistently with LLVM. Without this change the problem is that flangOmpReport and flangPrintFunctionNames libraries are not built under 'all', but they are imported targets via LLVMExports.cmake so that any out-of-tree build that configures upon LLVM+Flang package will get this CMake error: The imported target "flangPrintFunctionNames" references the file ".../lib/flangPrintFunctionNames.so" but this file does not exist. flang-aarch64-out-of-tree buildbot (https://lab.llvm.org/buildbot/#/builders/175) does not catch this issue, because it does not enable Flang on the first stage. This change gets rid of FLANG_BUILD_EXAMPLES in favor of LLVM_BUILD_EXAMPLES and uses available LLVM CMake macros to add example executables/libraries. Differential Revision: https://reviews.llvm.org/D145992 | 3 年前 | |
[flang][nfc] Fix driver method names overridden by the plugins After the recent re-factoring of the driver code (https://reviews.llvm.org/D125007), ExecuteAction was renamed as executeAction. This patch updates the examples in Flang accordingly. If you set FLANG_BUILD_EXAMPLES to On when building Flang, then the refactoring from D125007 would have caused build failures for you. This patch fixes that. This is fairly straightforward and fixes buildbot failures, so I'm sending this without a review. | 4 年前 |