diff options
Diffstat (limited to 'src/tools/wasm-split/split-options.cpp')
-rw-r--r-- | src/tools/wasm-split/split-options.cpp | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/tools/wasm-split/split-options.cpp b/src/tools/wasm-split/split-options.cpp index b166b575c..9a9351998 100644 --- a/src/tools/wasm-split/split-options.cpp +++ b/src/tools/wasm-split/split-options.cpp @@ -129,7 +129,7 @@ WasmSplitOptions::WasmSplitOptions() .add("--keep-funcs", "", "Comma-separated list of functions to keep in the primary module. The " - "rest will be split out. Cannot be used with --profile or " + "rest will be split out. Can be used alongside --profile and " "--split-funcs. You can also pass a file with one function per line " "by passing @filename.", WasmSplitOption, @@ -141,8 +141,9 @@ WasmSplitOptions::WasmSplitOptions() .add("--split-funcs", "", "Comma-separated list of functions to split out to the secondary " - "module. The rest will be kept. Cannot be used with --profile or " - "--keep-funcs. You can also pass a file with one function per line " + "module. The rest will be kept. Can be used alongside --profile and " + "--keep-funcs. This takes precedence over other split options. " + "You can also pass a file with one function per line " "by passing @filename.", WasmSplitOption, {Mode::Split}, @@ -421,18 +422,6 @@ bool WasmSplitOptions::validate() { } } - if (mode == Mode::Split) { - if (profileFile.size() && keepFuncs.size()) { - fail("Cannot use both --profile and --keep-funcs."); - } - if (profileFile.size() && splitFuncs.size()) { - fail("Cannot use both --profile and --split-funcs."); - } - if (keepFuncs.size() && splitFuncs.size()) { - fail("Cannot use both --keep-funcs and --split-funcs."); - } - } - return valid; } |