Skip to content

Commit 9fff1f6

Browse files
jcfrusiems
authored andcommitted
fix(generator): Define __x86_64__ to support Qt SDK on multi-lib distribution
This ensures that headers like `bits/wordsize.h` included from `qconfig.h` found in multi-lib Qt distributions will properly define `__WORDSIZE` so that the expected header `QtCore/qconfig-64.h` is included.
1 parent 427fc7a commit 9fff1f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generator/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ namespace
227227
}
228228
dui.defines.push_back("__cplusplus=1");
229229
dui.defines.push_back("__STDC__");
230+
#ifdef Q_PROCESSOR_X86_64
231+
dui.defines.push_back("__x86_64__");
232+
#endif
230233
dui.std = "c++20";
231234
dui.removeComments = true;
232235

0 commit comments

Comments
 (0)