mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Basic: query the target pointer width from clang
Use the `clang::TargetInfo` to query the target pointer size for the given triple. This is meant to enable us to properly determine `CMAKE_SIZEOF_VOID_P`.
This commit is contained in:
@@ -33,7 +33,8 @@ namespace targetinfo {
|
||||
void printTargetInfo(const CompilerInvocation &invocation,
|
||||
llvm::raw_ostream &out);
|
||||
|
||||
void printTripleInfo(const llvm::Triple &triple,
|
||||
void printTripleInfo(const CompilerInvocation &invocation,
|
||||
const llvm::Triple &triple,
|
||||
std::optional<llvm::VersionTuple> runtimeVersion,
|
||||
llvm::raw_ostream &out);
|
||||
} // namespace targetinfo
|
||||
|
||||
Reference in New Issue
Block a user