diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-06-19 09:08:56 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-06-27 11:30:13 +0200 |
| commit | 244b5dd5e1869ea85c5b78d27259965f7ca2c7bb (patch) | |
| tree | a2709e9d15f829a10b5462759fe0d490a0d20fd4 /sources/shiboken6/ApiExtractor/clangparser/compilersupport.h | |
| parent | db8cd503f076d869ff38f660d73c42c4a023670d (diff) | |
shiboken6: Add a triplet parser and triplet builder with test
Task-number: PYSIDE-3105
Change-Id: I13faf4343705e6c1f636784da0cc3e105390b012
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/compilersupport.h')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/clangparser/compilersupport.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h index 5e4b35a77..092aab12d 100644 --- a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h +++ b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h @@ -63,6 +63,8 @@ void addCompilerArgument(const QString &arg); Platform platform(); bool setPlatform(const QString &name); +QByteArray targetTripletForPlatform(Platform p, Architecture a, Compiler c); +const char *compilerTripletValue(Compiler c); Architecture architecture(); bool setArchitecture(const QString &name); @@ -74,6 +76,10 @@ QString targetTriple(); void setTargetTriple(const QStringList &clangOptions); // Set from cmd line before parsing void setTargetTriple(const QString &t); // Updated by clang parser while parsing +// Parse a triplet "x86_64-unknown-linux-gnu" (for testing). Note the +// compiler might not be present and defaults to host +bool parseTriplet(QStringView name, Architecture *a, Platform *p, Compiler *c); + } // namespace clang #endif // COMPILERSUPPORT_H |
