From 2ec945401e697db34c798900af2a2757787723ac Mon Sep 17 00:00:00 2001 From: Tulio Magno Quites Machado Filho Date: Tue, 1 Aug 2023 16:53:22 -0300 Subject: [PATCH] Enable LLVM_UNREACHABLE_OPTIMIZE temporarily This has been causing issues when building clang. Enable it temporarily until the root cause is found and fixed. --- llvm.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/llvm.spec b/llvm.spec index e07e711..5ef997d 100644 --- a/llvm.spec +++ b/llvm.spec @@ -90,7 +90,7 @@ Name: %{pkg_name} Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}%{?llvm_snapshot_version_suffix:~%{llvm_snapshot_version_suffix}} -Release: 1%{?dist} +Release: 2%{?dist} Summary: The Low Level Virtual Machine License: Apache-2.0 WITH LLVM-exception OR NCSA @@ -272,6 +272,7 @@ mv %{third_party_srcdir} third-party export ASMFLAGS="%{build_cflags}" # force off shared libs as cmake macros turns it on. +# TODO: Disable LLVM_UNREACHABLE_OPTIMIZE. %cmake -G Ninja \ -DBUILD_SHARED_LIBS:BOOL=OFF \ -DLLVM_PARALLEL_LINK_JOBS=1 \ @@ -338,7 +339,7 @@ export ASMFLAGS="%{build_cflags}" -DLLVM_VERSION_SUFFIX='' \ %endif %endif - -DLLVM_UNREACHABLE_OPTIMIZE:BOOL=OFF \ + -DLLVM_UNREACHABLE_OPTIMIZE:BOOL=ON \ -DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \ -DLLVM_LINK_LLVM_DYLIB:BOOL=ON \ -DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=ON \ @@ -599,6 +600,9 @@ fi %changelog %{?llvm_snapshot_changelog_entry} +* Tue Aug 01 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc1-2 +- Enable LLVM_UNREACHABLE_OPTIMIZE temporarily + * Mon Jul 31 2023 Tulio Magno Quites Machado Filho - 17.0.0~rc1-1 - Update to LLVM 17.0.0 RC1