Skip to content

DaemonArchitecture: NUKE x86 revision detection#1597

Merged
slipher merged 1 commit intoDaemonEngine:masterfrom
slipher:solving-for-x86
Mar 14, 2025
Merged

DaemonArchitecture: NUKE x86 revision detection#1597
slipher merged 1 commit intoDaemonEngine:masterfrom
slipher:solving-for-x86

Conversation

@slipher
Copy link
Copy Markdown
Member

@slipher slipher commented Mar 13, 2025

Always assume i686, instead of trying to use the numeric value of Q_PROCESSOR_X86, which isn't accurate in our build.

For architecture detection the compiler is invoked without any of the flags that we usually pass. So the -march=XXX, etc. flags are not there. This means the architecture revision that the compiler advertises during architecture detection may not be the same as in the real build. You may react, "just do the architecture detection with all flags on", but this would probably lead to chicken-and-egg problems as architecture is used to choose flags. In principle it could be done with two passes of architecture detection but implementing that would obviously be a waste of time.

Fixes #1596.

Always assume i686, instead of trying to use the numeric value of
Q_PROCESSOR_X86, which isn't accurate in our build.

For architecture detection the compiler is invoked without any of the
flags that we usually pass. So the -march=XXX, etc. flags are not there.
This means the architecture revision that the compiler advertises during
architecture detection may not be the same as in the real build. You may
react, "just do the architecture detection with all flags on", but this
would probably lead to chicken-and-egg problems as architecture is used
to choose flags. In principle it could be done with two passes of
architecture detection but implementing that would obviously be a waste
of time.

Fixes DaemonEngine#1596.
@illwieckz
Copy link
Copy Markdown
Member

Right, we only need to know it's 32-bit, it is us who chose the revision.

Copy link
Copy Markdown
Member

@illwieckz illwieckz left a comment

Choose a reason for hiding this comment

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

LGTM.

@slipher slipher merged commit 648d274 into DaemonEngine:master Mar 14, 2025
9 checks passed
@slipher slipher deleted the solving-for-x86 branch March 14, 2025 20:54
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.

Architecture detection fails with recent 32-bit MinGW

2 participants