diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-05-16 14:04:13 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-05-22 15:34:01 +0200 |
| commit | 14699b3ba02f990992a3980c68fabdc9f9adf033 (patch) | |
| tree | d4d4850f3405a4e435bf473f492e1bc428a72c71 /sources/shiboken6/ApiExtractor/clangparser/compilersupport.h | |
| parent | a3d52a77900853d595dc6e4eb906a8e335d954fc (diff) | |
shiboken6: Determine the target platform
Store the target triple from the clang options of the command line to
be able to set up compiler options for clang parsing accordingly.
While parsing, update by the value obtained from clang and the pointer
size.
Pick-to: 6.9
Task-number: PYSIDE-3105
Change-Id: I33c60e14418b10c3f3cfa1603b29ed2a06b1589a
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.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h index 1fa980998..0e12ca137 100644 --- a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h +++ b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h @@ -51,6 +51,14 @@ void setCompilerPath(const QString &name); Platform platform(); bool setPlatform(const QString &name); + +unsigned pointerSize(); // (bit) +void setPointerSize(unsigned ps); // Set by parser + +QString targetTriple(); +void setTargetTriple(const QStringList &clangOptions); // Set from cmd line before parsing +void setTargetTriple(const QString &t); // Updated by clang parser while parsing + } // namespace clang #endif // COMPILERSUPPORT_H |
