Skip to content

Conversation

@vgvassilev
Copy link
Member

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.

[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.
@vgvassilev vgvassilev marked this pull request as ready for review August 22, 2024 20:31
@vgvassilev vgvassilev requested a review from hahnjo August 22, 2024 20:32
@vgvassilev
Copy link
Member Author

Note that if we want to download at configuration time we should use FetchContent_Declare which seems to take similar arguments.

list(APPEND _cppinterop_extra_cmake_args -DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD})
endif(CMAKE_CXX_STANDARD)

if (LLVM_FORCE_USE_OLD_TOOLCHAIN)
Copy link
Member

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...

Copy link
Contributor

@aaronj0 aaronj0 Aug 26, 2024

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

@vgvassilev
Copy link
Member Author

Note that we need to land compiler-research/CppInterOp#318, release and then merge this PR.

@github-actions
Copy link

Test Results

    13 files      13 suites   2d 16h 36m 3s ⏱️
 3 024 tests  3 024 ✅ 0 💤 0 ❌
33 795 runs  33 795 ✅ 0 💤 0 ❌

Results for commit 8cbe14e.

@aaronj0 aaronj0 self-assigned this Aug 27, 2024
@vgvassilev
Copy link
Member Author

Closing in favor or #16814.

@vgvassilev vgvassilev closed this Dec 3, 2024
@vgvassilev vgvassilev deleted the enable-cppinterop branch December 3, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants