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

Add Windows llvm debug build #1154

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

mcbarton
Copy link
Contributor

This PR should allow Clad to be tested against the head of release branch of llvm on Windows.

Copy link
Owner

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

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

Looks like the bots are not picking up these changes, right?

@mcbarton
Copy link
Contributor Author

@vgvassilev They only build llvm on Windows if debug=true in the ci. If you look at the first commit where I forgot to add this condition, the ci is building llvm on Windows before I stopped the job.

@vgvassilev
Copy link
Owner

@vgvassilev They only build llvm on Windows if debug=true in the ci. If you look at the first commit where I forgot to add this condition, the ci is building llvm on Windows before I stopped the job.

Can we make a new configuration that builds llvm on windows, caches it and builds clad against it?

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.56%. Comparing base (693b1bd) to head (4ed65e4).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1154   +/-   ##
=======================================
  Coverage   94.56%   94.56%           
=======================================
  Files          51       51           
  Lines        8944     8944           
=======================================
  Hits         8458     8458           
  Misses        486      486           

@mcbarton
Copy link
Contributor Author

@vgvassilev This PR is ready for review. If you look at the ci it uses the built cache to build Clad. If you merge, remember to clear the cache before you merge. I'll put in a PR at some point to reduce the size of the cache.

@vgvassilev
Copy link
Owner

@vgvassilev This PR is ready for review. If you look at the ci it uses the built cache to build Clad. If you merge, remember to clear the cache before you merge. I'll put in a PR at some point to reduce the size of the cache.

I think we will need a bit more to this. We need to compile with clang-cl to be able to pick up the windows exports. We should use something like cmake -GNinja -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_TARGETS_TO_BUILD=host -DLLVM_ENABLE_PLUGINS=On ..\llvm

Then we need to compile clad with: cmake -DCMAKE_BUILD_TYPE=Debug -DLLVM_DIR=c:\vv-llvm-dev\llvm-project\build -GNinja -DLLVM_BUILD_LLVM_DYLIB_VIS=On -DLLVM_LINK_LLVM_DYLIB=On -DCLANG_LINK_CLANG_DYLIB=On ..\clad

@mcbarton
Copy link
Contributor Author

@vgvassilev I'll do this once you clear the cache for this PR. I'll also try and reduce the size of the cache at the same time.

@vgvassilev
Copy link
Owner

@vgvassilev I'll do this once you clear the cache for this PR. I'll also try and reduce the size of the cache at the same time.

Done!

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