aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/compilersupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/compilersupport.h')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/compilersupport.h6
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