-
Couldn't load subscription status.
- Fork 1.4k
Enable CppInterOp #16296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable CppInterOp #16296
Conversation
[CppInterOp](https://github.com/compiler-research/CppInterOp) exposes API from Clang and LLVM in a mostly backward compatibe way. The API support downstream tools that utilize interactive C++ by using the compiler as a service. Adopting more of CppInterOp in ROOT will help simplify the LLVM migration process and allow us to upstream more patches to either CppInterOp or LLVM.
f18ddc5 to
937a30b
Compare
|
Note that if we want to download at configuration time we should use FetchContent_Declare which seems to take similar arguments. |
core/metacling/src/CMakeLists.txt
Outdated
| list(APPEND _cppinterop_extra_cmake_args -DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}) | ||
| endif(CMAKE_CXX_STANDARD) | ||
|
|
||
| if (LLVM_FORCE_USE_OLD_TOOLCHAIN) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is defined in interpreter/CMakeLists.txt, so very likely we cannot access it here...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dropped as we shouldn't need this as we build InterOp with clang>6 and hence gcc>=7.1
|
Note that we need to land compiler-research/CppInterOp#318, release and then merge this PR. |
Test Results 13 files 13 suites 2d 16h 36m 3s ⏱️ Results for commit 8cbe14e. |
|
Closing in favor or #16814. |
CppInterOp exposes API from Clang and LLVM in a mostly backward compatibe way. The API support downstream tools that utilize interactive C++ by using the compiler as a service.
Adopting more of CppInterOp in ROOT will help simplify the LLVM migration process and allow us to upstream more patches to either CppInterOp or LLVM.
@aaronj0, you can take it from here.