Skip to content

feat: add LLVM as git submodule #346

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

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

Conversation

0xf333
Copy link
Contributor

@0xf333 0xf333 commented Jun 16, 2025

Introduced changes

  • Replaced revive-llvm clone with git submodule approach.
  • Pin LLVM to commit 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff (llvmorg-18.1.8).
  • Updated Makefile to use 'git submodule update --init --recursive'.
  • Modified .gitignore to allow llvm submodule directory.
  • Removed LLVM.lock file and lock mechanism from llvm-builder.
  • Replaced clone/checkout commands with submodule initialization.
  • Updated CI workflows to use submodules: true in checkout actions.
  • Simplified revive-llvm CLI to build/clean/builtins commands only.

Closes issue #306

0xf333 and others added 2 commits June 16, 2025 08:40
Introduced changes
------------------
- Replaced revive-llvm clone with git submodule approach.
- Pin LLVM to commit 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff
  (llvmorg-18.1.8).
- Updated Makefile to use 'git submodule update --init --recursive'.
- Modified .gitignore to allow llvm submodule directory.
- Removed LLVM.lock file and lock mechanism from llvm-builder.
- Replaced clone/checkout commands with submodule initialization.
- Updated CI workflows to use submodules: true in checkout actions.
- Simplified revive-llvm CLI to build/clean/builtins commands only.

Closes issue  paritytech#306

* refact: cleaned up dependencies and tests in llvm-builder

  Introduced changes
  ------------------
  - Removed `serde` and `toml` dependencies from `Cargo.toml`
    and `Cargo.lock`.
  - Simplified test functions by renaming and removing unnecessary
    clone commands.
  - Updated `TestDir` to initialize a temporary directory with
    submodule setup instead of using a lockfile.
  - Deleted outdated tests related to cloning and checking out branches
    since they are no longer needed.

Signed-off-by: 0xf333 <[email protected]>
Copy link
Member

@xermicus xermicus left a comment

Choose a reason for hiding this comment

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

Many thanks! I'd like to see whether the LLVM release works properly with those changes. Would you mind to either try it in a fork of yours or open the PR against https://github.com/paritytech/revive-alex-workflowtest/tree/main ?

@0xf333
Copy link
Contributor Author

0xf333 commented Jun 19, 2025

@xermicus

Many thanks! I'd like to see whether the LLVM release works properly with those changes.

I tested it, It's working with the latest llvm. Check the branch in my repo fork: https://github.com/0xf333/revive/tree/pr-346-with-llvm-20.1.7

@0xf333 0xf333 requested a review from xermicus June 19, 2025 16:47
@xermicus
Copy link
Member

Ah so what I'd like to see is a LLVM release to verify whether the GHA works (using LLVM 18.1.8 - we can't update just yet).

Since the workflow already uses 'actions/checkout@v4' with
'submodules: true', the LLVM submodule is automatically checked out
at the pinned commit, making the separate clone step unnecessary
and broken.

Signed-off-by: 0xf333 <[email protected]>
@0xf333 0xf333 force-pushed the feat-added-llvm-as-a-git-submodule branch from eb78b42 to 4444ae2 Compare June 20, 2025 10:39
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