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

Enable compiler subprojects on Windows. #95

Merged
merged 3 commits into from
Feb 15, 2025

Conversation

ScottTodd
Copy link
Member

@ScottTodd ScottTodd commented Feb 14, 2025

Progress on #36.

We'll want to switch to self-hosted runners and tune the cache to make the build faster soon. This is still under 20 minutes on standard runners though: https://github.com/nod-ai/TheRock/actions/runs/13339298280/job/37260996314.

@ScottTodd ScottTodd marked this pull request as ready for review February 15, 2025 00:05
Comment on lines +21 to +23
+ # Enable standards-conforming preprocessor.
+ # https://learn.microsoft.com/en-us/cpp/build/reference/zc-preprocessor
+ "/Zc:preprocessor"
Copy link
Member Author

Choose a reason for hiding this comment

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

Clues that helped settle on this fix:

Should upstream the patch somehow.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, ping the LLVM team next week. Thanks for the sleuthing.

Copy link
Contributor

@stellaraccident stellaraccident left a comment

Choose a reason for hiding this comment

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

Nice - you'll be racing me because I have two LLVM patches. You go first now and I'll adapt.

therock_cmake_subproject_declare(amd-comgr
EXTERNAL_SOURCE_DIR "amd-llvm/amd/comgr"
BINARY_DIR "amd-comgr"
BACKGROUND_BUILD
CMAKE_ARGS
# TODO: Currently unstable. Enable in >6.4.
-DCOMGR_DISABLE_SPIRV=ON
-DLLVM_LINK_LLVM_DYLIB=ON
-DLLVM_LINK_LLVM_DYLIB=${_link_dylib}
Copy link
Contributor

Choose a reason for hiding this comment

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

You can just take this out and put it all properly conditioned in the pre_hook.

Copy link
Contributor

Choose a reason for hiding this comment

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

(I think this was just leftover from before I moved all of the logic there)

Copy link
Member Author

Choose a reason for hiding this comment

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

How's this? Want

    CMAKE_ARGS
      # TODO: Currently unstable. Enable in >6.4.
      -DCOMGR_DISABLE_SPIRV=ON

moved too?

Comment on lines +21 to +23
+ # Enable standards-conforming preprocessor.
+ # https://learn.microsoft.com/en-us/cpp/build/reference/zc-preprocessor
+ "/Zc:preprocessor"
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, ping the LLVM team next week. Thanks for the sleuthing.

@ScottTodd ScottTodd merged commit 31a9888 into nod-ai:main Feb 15, 2025
2 checks passed
@ScottTodd ScottTodd deleted the windows-compiler branch February 15, 2025 00:43
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