Skip to content
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

Upgrade CppInterOp to support llvm 20 (non-wasm) #491

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

mcbarton
Copy link
Collaborator

Description

Please include a summary of changes, motivation and context for this PR.

Given the llvm 20.x branch got released today I can begin the upgrade to CppInterOp to support llvm 20.

Fixes # (issue)

Type of change

Please tick all options which are relevant.

  • Bug fix
  • New feature
  • Requires documentation updates

Testing

Please describe the test(s) that you added and ran to verify your changes.

Checklist

  • I have read the contribution guide recently

Copy link

codecov bot commented Jan 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.17%. Comparing base (a901f57) to head (ba50742).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #491   +/-   ##
=======================================
  Coverage   71.17%   71.17%           
=======================================
  Files           9        9           
  Lines        3552     3552           
=======================================
  Hits         2528     2528           
  Misses       1024     1024           
Files with missing lines Coverage Δ
lib/Interpreter/Paths.cpp 55.19% <ø> (ø)
Files with missing lines Coverage Δ
lib/Interpreter/Paths.cpp 55.19% <ø> (ø)

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@@ -174,13 +174,15 @@ void CopyIncludePaths(const clang::HeaderSearchOptions& Opts,
if (!withSystem) continue;
if (withFlags) incpaths.push_back("-isystem");
break;

//option doesn't appear to exist for llvm>19. Will revert if I determine otherwise.
#if CLANG_VERSION_MAJOR < 20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: no header providing "CLANG_VERSION_MAJOR" is directly included [misc-include-cleaner]

lib/Interpreter/Paths.cpp:20:

+ #include <clang/Basic/Version.h>

@mcbarton mcbarton force-pushed the Update-to-llvm-20 branch 4 times, most recently from c8a5a4d to e435205 Compare February 2, 2025 21:22
@mcbarton mcbarton changed the title [wip] Upgrade CppInterOp to support llvm 20. Upgrade CppInterOp to support llvm 20 (non-wasm) Feb 3, 2025
@mcbarton mcbarton marked this pull request as ready for review February 3, 2025 21:23
@mcbarton mcbarton requested a review from vgvassilev February 3, 2025 21:23
@anutosh491
Copy link
Collaborator

anutosh491 commented Feb 4, 2025

I get these warnings while building latest llvm

CMake Deprecation Warning at /Users/anutosh491/work/llvm-project/clang/CMakeLists.txt:444 (message):
  'CLANG_ENABLE_ARCMT' is deprecated as ARCMigrate has been removed from
  Clang.  Please use 'CLANG_ENABLE_OBJC_REWRITER' instead to enable or
  disable the Objective-C rewriter.
  

Possibly should be fixed in our llvm build too !

@mcbarton
Copy link
Collaborator Author

mcbarton commented Feb 4, 2025

I get these warnings while building latest llvm

CMake Deprecation Warning at /Users/anutosh491/work/llvm-project/clang/CMakeLists.txt:444 (message):
  'CLANG_ENABLE_ARCMT' is deprecated as ARCMigrate has been removed from
  Clang.  Please use 'CLANG_ENABLE_OBJC_REWRITER' instead to enable or
  disable the Objective-C rewriter.
  

Possibly should be fixed in our llvm build too !

Thanks. Will look into this. Need to see if this option is avilable on older versions of llvm, given the ci covers multiple versions.

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.

2 participants