diff options
author | Alon Zakai <azakai@google.com> | 2019-09-08 07:06:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-08 07:06:04 -0700 |
commit | 241aa71a776ae7e4c0cddb11523358242832daa4 (patch) | |
tree | 64798b66cc2f3fd1e9c0011ddf3ea859b76bfbef /src/passes/Asyncify.cpp | |
parent | fefb75ef7f3b1cd6c8bf27dd6d288439c6ca7bc8 (diff) | |
download | binaryen-241aa71a776ae7e4c0cddb11523358242832daa4.tar.gz binaryen-241aa71a776ae7e4c0cddb11523358242832daa4.tar.bz2 binaryen-241aa71a776ae7e4c0cddb11523358242832daa4.zip |
More response file support in asyncify: whitelist/blacklist (#2335)
Diffstat (limited to 'src/passes/Asyncify.cpp')
-rw-r--r-- | src/passes/Asyncify.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/passes/Asyncify.cpp b/src/passes/Asyncify.cpp index 1394cd015..06437e2a7 100644 --- a/src/passes/Asyncify.cpp +++ b/src/passes/Asyncify.cpp @@ -231,12 +231,16 @@ // really know what are doing, and need to optimize every bit of speed // and size. // +// As with --asyncify-imports, you can use a response file here. +// // --pass-arg=asyncify-whitelist@name1,name2,name3 // // If the whitelist is provided, then only the functions in the list // will be instrumented. Like the blacklist, getting this wrong will // break your application. // +// As with --asyncify-imports, you can use a response file here. +// // TODO When wasm has GC, extending the live ranges of locals can keep things // alive unnecessarily. We may want to set locals to null at the end // of their original range. @@ -1047,9 +1051,13 @@ struct Asyncify : public Pass { auto ignoreIndirect = runner->options.getArgumentOrDefault("asyncify-ignore-indirect", ""); String::Split blacklist( - runner->options.getArgumentOrDefault("asyncify-blacklist", ""), ","); + String::trim(read_possible_response_file( + runner->options.getArgumentOrDefault("asyncify-blacklist", ""))), + ","); String::Split whitelist( - runner->options.getArgumentOrDefault("asyncify-whitelist", ""), ","); + String::trim(read_possible_response_file( + runner->options.getArgumentOrDefault("asyncify-whitelist", ""))), + ","); blacklist = handleBracketingOperators(blacklist); whitelist = handleBracketingOperators(whitelist); |