Skip to content

Conversation

lb90
Copy link
Contributor

@lb90 lb90 commented Sep 10, 2025

Fixes #15011

@lb90 lb90 requested a review from jpakkane as a code owner September 10, 2025 13:45
@lb90 lb90 force-pushed the windows-module-search-llvm-rc-and-llvm-windres branch from 24afaa8 to 8414c9f Compare September 10, 2025 13:46
@bonzini bonzini added this to the 1.9.1 milestone Sep 10, 2025
@lb90 lb90 force-pushed the windows-module-search-llvm-rc-and-llvm-windres branch from 8414c9f to 0fad600 Compare September 10, 2025 14:38
if comp.id in {'msvc', 'clang-cl', 'intel-cl'} or (comp.linker and comp.linker.id in {'link', 'lld-link'}):
# Microsoft compilers uses rc irrespective of the frontend
rescomp = ExternalProgram('rc', silent=True)
rescomp = find_rc_like_compiler() or find_windres_like_compiler()
Copy link
Member

Choose a reason for hiding this comment

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

The commit message doesn't rationalize why for MSVC/clang-cl we now search for windres

return None

def find_rc_like_compiler() -> T.Optional[ExternalProgram]:
return search_programs(['rc', 'llvm-rc'])
Copy link
Member

Choose a reason for hiding this comment

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

This function exists solely to be an alias for another function. I don't think you need the extra function definition...

@bonzini bonzini modified the milestones: 1.9.1, 1.9.2 Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

windows.compile_resources should be able to auto-detect llvm-rc
3 participants