aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-06-18 09:30:26 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-06-25 16:11:20 +0200
commit7c9a9a426c57b765dc06be8027395cbc54d2cc5b (patch)
tree277faac1a09097a6889f65245ef5ce48c33c32d5 /sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
parentb72fd836f8c84552e512152a92ca9e6e92438cd5 (diff)
shiboken6: Add architecture option
As opposed to Platform/Compiler, it has an "Other" option since host builds should run on any architecture. Task-number: PYSIDE-3105 Change-Id: I170bbba422ca862a980d0e5efee2d9978fdcdb0f Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/compilersupport.h')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/compilersupport.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
index a2185be90..5e4b35a77 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
+++ b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
@@ -33,6 +33,14 @@ enum class Platform {
iOS
};
+enum class Architecture {
+ Other,
+ X64,
+ X86,
+ Arm64,
+ Arm32
+};
+
namespace clang {
QVersionNumber libClangVersion();
@@ -56,6 +64,9 @@ void addCompilerArgument(const QString &arg);
Platform platform();
bool setPlatform(const QString &name);
+Architecture architecture();
+bool setArchitecture(const QString &name);
+
unsigned pointerSize(); // (bit)
void setPointerSize(unsigned ps); // Set by parser