Skip to content

Check Windows defines in Name.h#760

Merged
kyle-elliott-tob merged 1 commit intolifting-bits:masterfrom
ds5678:windows-architecture-detection
Mar 10, 2026
Merged

Check Windows defines in Name.h#760
kyle-elliott-tob merged 1 commit intolifting-bits:masterfrom
ds5678:windows-architecture-detection

Conversation

@ds5678
Copy link
Copy Markdown
Contributor

@ds5678 ds5678 commented Mar 5, 2026

@ds5678 ds5678 requested a review from kyle-elliott-tob as a code owner March 5, 2026 06:41
@mrexodia
Copy link
Copy Markdown
Contributor

mrexodia commented Mar 5, 2026

You cannot compile remill with MSVC, so this wouldn't affect anything.

@ds5678
Copy link
Copy Markdown
Contributor Author

ds5678 commented Mar 5, 2026

You cannot compile remill with MSVC, so this wouldn't affect anything.

I already have, so it does.

@mrexodia
Copy link
Copy Markdown
Contributor

mrexodia commented Mar 5, 2026

Could you share more information? The codebase is littered with Clang-specific intrinsics/constructs, so this makes compiling it with MSVC rather difficult 😅

@ds5678
Copy link
Copy Markdown
Contributor Author

ds5678 commented Mar 5, 2026

I have a workflow to build static libraries of Remill.

https://github.com/ds5678/remill/actions/runs/22702765403

Whenever I referenced the static libraries on my computer, this platform detection was the only thing preventing me from using those static libraries.

@mrexodia
Copy link
Copy Markdown
Contributor

mrexodia commented Mar 5, 2026

Your workflow builds with clang-cl, not MSVC. But I guess you want to try to consume Remill as a library precompiled by Clang from MSVC? From what I remember there are a bunch of __attribute__((packed)) in the public headers for the State structures so it wouldn't really work?

@ds5678
Copy link
Copy Markdown
Contributor Author

ds5678 commented Mar 5, 2026

there are a bunch of attribute((packed)) in the public headers for the State structures

I do remember getting a bunch of warnings about this on my computer. I'll try again with clang-cl.

@ds5678
Copy link
Copy Markdown
Contributor Author

ds5678 commented Mar 5, 2026

there are a bunch of attribute((packed)) in the public headers for the State structures

I do remember getting a bunch of warnings about this on my computer. I'll try again with clang-cl.

I switched to clang-cl, and the warnings have disappeared. Using clang-cl also makes this pull request unnecessary. You can merge or close it.

Copy link
Copy Markdown
Collaborator

@kyle-elliott-tob kyle-elliott-tob left a comment

Choose a reason for hiding this comment

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

I think it's fine to pull in as the headers might be consumed while using a static library (if we ever get around to artifact producing CI).

@kyle-elliott-tob kyle-elliott-tob merged commit 9580218 into lifting-bits:master Mar 10, 2026
17 checks passed
@ds5678 ds5678 deleted the windows-architecture-detection branch March 10, 2026 18: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.

3 participants