The flang(f18) developers desire a way to build llvm and mlir separately for installation and then build the flang front-end out of tree. This patch adds some cmake infrastructure to allow that development environment to behave correctly.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Nice, seems to match what clang does here too so that's good to keep it in sync
mlir/CMakeLists.txt | ||
---|---|---|
11–15 | Cant this be removed now? | |
44–64 | Can this be removed now? | |
mlir/cmake/modules/CMakeLists.txt | ||
1–3 | I was going to comment "What does clang do?" and then I saw they have this exact same comment ;-) | |
28–29 | Nit: could you indent these to show the nesting? | |
35 | Same re indent | |
43–46 | Leftover from testing? | |
51 | Could you add a comment for this section? |
mlir/CMakeLists.txt | ||
---|---|---|
11–15 | Possibly. We can give it a try. | |
mlir/cmake/modules/CMakeLists.txt | ||
28–29 | Sure. :) | |
43–46 | This was leftover from cobbling things together from other LLVM projects. Other projects seem to setup this XXXConfig.cmake file, but I found it wasn't needed here. We can remove these commented out lines, if you prefer. I left them with the chance someone who knew CMake better had good reasons to build out an MLIRConfig.cmake rule. | |
51 | I can give it a shot. |
I think you may have forgotten to upload the changed diff :) In general I think this looks good, I'd like to remove the duplicate functions but beyond that this should be good.
mlir/cmake/modules/CMakeLists.txt | ||
---|---|---|
43–46 | Lets remove them, instead thanks. |
mlir/cmake/modules/CMakeLists.txt | ||
---|---|---|
28–29 | Actually, this looks like it is in column-0 because it is quoted. I'm going to leave it. |
Do you have the ability to use arc by the way? It enables the CI testing to build/test revision here
This patch breaks Windows MSVC build, former correct ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib/${LIB}.lib now suddenly becomes wrong ${LIB}.
I'll revert this part to what it was given https://bugs.llvm.org/show_bug.cgi?id=44660
Cant this be removed now?