Skip to content

Commit 241aa71

Browse files
authored
More response file support in asyncify: whitelist/blacklist (#2335)
1 parent fefb75e commit 241aa71

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/passes/Asyncify.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,16 @@
231231
// really know what are doing, and need to optimize every bit of speed
232232
// and size.
233233
//
234+
// As with --asyncify-imports, you can use a response file here.
235+
//
234236
// --pass-arg=asyncify-whitelist@name1,name2,name3
235237
//
236238
// If the whitelist is provided, then only the functions in the list
237239
// will be instrumented. Like the blacklist, getting this wrong will
238240
// break your application.
239241
//
242+
// As with --asyncify-imports, you can use a response file here.
243+
//
240244
// TODO When wasm has GC, extending the live ranges of locals can keep things
241245
// alive unnecessarily. We may want to set locals to null at the end
242246
// of their original range.
@@ -1047,9 +1051,13 @@ struct Asyncify : public Pass {
10471051
auto ignoreIndirect =
10481052
runner->options.getArgumentOrDefault("asyncify-ignore-indirect", "");
10491053
String::Split blacklist(
1050-
runner->options.getArgumentOrDefault("asyncify-blacklist", ""), ",");
1054+
String::trim(read_possible_response_file(
1055+
runner->options.getArgumentOrDefault("asyncify-blacklist", ""))),
1056+
",");
10511057
String::Split whitelist(
1052-
runner->options.getArgumentOrDefault("asyncify-whitelist", ""), ",");
1058+
String::trim(read_possible_response_file(
1059+
runner->options.getArgumentOrDefault("asyncify-whitelist", ""))),
1060+
",");
10531061

10541062
blacklist = handleBracketingOperators(blacklist);
10551063
whitelist = handleBracketingOperators(whitelist);

0 commit comments

Comments
 (0)