Skip to content

Commit 2b56cc5

Browse files
[WASM] Propagate -use-static-resource-dir for merge-module
1 parent 8c34b0b commit 2b56cc5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/Driver/ToolChains.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,12 @@ ToolChain::constructInvocation(const MergeModuleJobAction &job,
10471047
context.Args.AddLastArg(
10481048
Arguments,
10491049
options::OPT_enable_experimental_cross_module_incremental_build);
1050-
1050+
if (context.Args.hasFlag(options::OPT_static_executable,
1051+
options::OPT_no_static_executable, false) ||
1052+
context.Args.hasFlag(options::OPT_static_stdlib,
1053+
options::OPT_no_static_stdlib, false)) {
1054+
Arguments.push_back("-use-static-resource-dir");
1055+
}
10511056
Arguments.push_back("-module-name");
10521057
Arguments.push_back(context.Args.MakeArgString(context.OI.ModuleName));
10531058

0 commit comments

Comments
 (0)