diff options
Diffstat (limited to 'lld/wasm/LTO.cpp')
-rw-r--r-- | lld/wasm/LTO.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lld/wasm/LTO.cpp b/lld/wasm/LTO.cpp index dd66c67e39f..f15551da8b8 100644 --- a/lld/wasm/LTO.cpp +++ b/lld/wasm/LTO.cpp @@ -45,10 +45,13 @@ static std::unique_ptr<lto::LTO> createLTO() { lto::Config C; C.Options = InitTargetOptionsFromCodeGenFlags(); - // Always emit a section per function/datum with LTO. + // Always emit a section per function/data with LTO. C.Options.FunctionSections = true; C.Options.DataSections = true; + // Wasm currently only supports ThreadModel::Single + C.Options.ThreadModel = ThreadModel::Single; + C.DisableVerify = Config->DisableVerify; C.DiagHandler = diagnosticHandler; C.OptLevel = Config->LTOO; |