Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#### Big news
- Frontend, druntime and Phobos are at version [2.113.0](https://dlang.org/changelog/2.113.0.html), incl. new command-line option `-foptimize-nothrow` to restore the `nothrow` optimizations. (#5113, #5221, #5239)
- `-foptimize-nothrow` is the default setting when targeting Windows, to make hitting https://github.com/ldc-developers/ldc/issues/3504 much less likely.
- `-foptimize-nothrow` is the default setting when targeting Windows or WebAssembly, to make hitting https://github.com/ldc-developers/ldc/issues/3504 much less likely.
- Support for [LLVM 22](https://releases.llvm.org/22.1.0/docs/ReleaseNotes.html). The prebuilt packages use v22.1.8. (#5097, #5102, #5172)
- Minimum LLVM version raised to 18. (#5094)
- New prebuilt **addon packages** (`ldc2-*-addon-<target OS>.tar.xz`) for simple cross-compilation. Simply unpack them directly into your LDC installation directory, and then cross-compile via `-mtriple=…` (or `dub --target=…`): (#5240)
Expand Down
2 changes: 1 addition & 1 deletion driver/cl_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ cl::opt<bool, true> fOptimizeNothrow(
cl::location(global.params.nothrowOptimizations),
cl::desc("Omit EH cleanups (destructors/`finally`/`scope(exit)`) when "
"Errors unwind through nothrow code. Defaults to true for Windows "
"targets, to make hitting "
"and WebAssembly targets, to make hitting "
"https://github.com/ldc-developers/ldc/issues/3504 less likely."));

#if LDC_LLVM_SUPPORTED_TARGET_SPIRV || LDC_LLVM_SUPPORTED_TARGET_NVPTX || LDC_LLVM_SUPPORTED_TARGET_AArch64
Expand Down
4 changes: 2 additions & 2 deletions driver/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1262,8 +1262,8 @@ int cppmain() {
global.params.dllimport = DLLImport::none;
}

if (triple->isWindowsMSVCEnvironment() &&
opts::fOptimizeNothrow.getNumOccurrences() == 0) {
if (opts::fOptimizeNothrow.getNumOccurrences() == 0 &&
(triple->isWindowsMSVCEnvironment() || triple->isWasm())) {
// FIXME: make https://github.com/ldc-developers/ldc/issues/3504 much less
// likely for now
global.params.nothrowOptimizations = true;
Expand Down
Loading