Frontend: add a frontend argument to pass down block list config file path

This commit is contained in:
Xi Ge
2023-04-05 12:20:49 -07:00
parent ba31c97d4f
commit 2c2431e2da
4 changed files with 13 additions and 0 deletions

View File

@@ -556,6 +556,9 @@ namespace swift {
/// The model of concurrency to be used.
ConcurrencyModel ActiveConcurrencyModel = ConcurrencyModel::Standard;
/// All block list configuration files to be honored in this compilation.
std::vector<std::string> BlocklistConfigFilePath;
bool isConcurrencyModelTaskToThread() const {
return ActiveConcurrencyModel == ConcurrencyModel::TaskToThread;
}