|
231 | 231 | // really know what are doing, and need to optimize every bit of speed |
232 | 232 | // and size. |
233 | 233 | // |
| 234 | +// As with --asyncify-imports, you can use a response file here. |
| 235 | +// |
234 | 236 | // --pass-arg=asyncify-whitelist@name1,name2,name3 |
235 | 237 | // |
236 | 238 | // If the whitelist is provided, then only the functions in the list |
237 | 239 | // will be instrumented. Like the blacklist, getting this wrong will |
238 | 240 | // break your application. |
239 | 241 | // |
| 242 | +// As with --asyncify-imports, you can use a response file here. |
| 243 | +// |
240 | 244 | // TODO When wasm has GC, extending the live ranges of locals can keep things |
241 | 245 | // alive unnecessarily. We may want to set locals to null at the end |
242 | 246 | // of their original range. |
@@ -1047,9 +1051,13 @@ struct Asyncify : public Pass { |
1047 | 1051 | auto ignoreIndirect = |
1048 | 1052 | runner->options.getArgumentOrDefault("asyncify-ignore-indirect", ""); |
1049 | 1053 | String::Split blacklist( |
1050 | | - runner->options.getArgumentOrDefault("asyncify-blacklist", ""), ","); |
| 1054 | + String::trim(read_possible_response_file( |
| 1055 | + runner->options.getArgumentOrDefault("asyncify-blacklist", ""))), |
| 1056 | + ","); |
1051 | 1057 | String::Split whitelist( |
1052 | | - runner->options.getArgumentOrDefault("asyncify-whitelist", ""), ","); |
| 1058 | + String::trim(read_possible_response_file( |
| 1059 | + runner->options.getArgumentOrDefault("asyncify-whitelist", ""))), |
| 1060 | + ","); |
1053 | 1061 |
|
1054 | 1062 | blacklist = handleBracketingOperators(blacklist); |
1055 | 1063 | whitelist = handleBracketingOperators(whitelist); |
|
0 commit comments