Merge pull request #83856 from gottesmm/pr-3a5aea3430d587158233a9d47b24c1b46ddd709e

[frontend] Expose via a LangOption whether or not the compiler is compiling for a triple that supports AArch64 TBI.
This commit is contained in:
Michael Gottesman
2025-08-25 14:49:52 -07:00
committed by GitHub
5 changed files with 19 additions and 0 deletions

View File

@@ -671,6 +671,9 @@ namespace swift {
bool RestrictNonProductionExperimentalFeatures = false;
#endif
/// Set to true if we support AArch64TBI.
bool HasAArch64TBI = false;
bool isConcurrencyModelTaskToThread() const {
return ActiveConcurrencyModel == ConcurrencyModel::TaskToThread;
}

View File

@@ -274,6 +274,9 @@ public:
/// C++ stdlib is the default for the specified target.
void computeCXXStdlibOptions();
/// Compute whether or not we support aarch64TBI
void computeAArch64TBIOptions();
/// Computes the runtime resource path relative to the given Swift
/// executable.
static void computeRuntimeResourcePathFromExecutablePath(