# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/clang/no-unsafe-Ofast-math.patch # Copyright (C) 2023 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- clang-19.1.0.src/lib/Driver/ToolChain.cpp.vanilla 2024-09-30 21:23:42.454088046 +0200 +++ clang-19.1.0.src/lib/Driver/ToolChain.cpp 2024-09-30 21:23:12.394087508 +0200 @@ -1325,7 +1325,7 @@ // Do not check for -fno-fast-math or -fno-unsafe-math when -Ofast passed // (to keep the linker options consistent with gcc and clang itself). - if (Default && !isOptimizationLevelFast(Args)) { + if (Default /*&& !isOptimizationLevelFast(Args)*/) { // Check if -ffast-math or -funsafe-math. Arg *A = Args.getLastArg( options::OPT_ffast_math, options::OPT_fno_fast_math,