--- CMakeLists.txt.orig	2026-11-11 06:41:16 UTC
+++ CMakeLists.txt
@@ -178,11 +178,6 @@ endif()
     endif()
 endif()
 
-# remove CMake's idea of optimisation
-foreach (CONFIG ${CMAKE_BUILD_TYPE} ${CMAKE_CONFIGURATION_TYPES})
-    string(REGEX REPLACE "-O[^ ]*" "" CMAKE_C_FLAGS_${CONFIG} "${CMAKE_C_FLAGS_${CONFIG}}")
-    string(REGEX REPLACE "-O[^ ]*" "" CMAKE_CXX_FLAGS_${CONFIG} "${CMAKE_CXX_FLAGS_${CONFIG}}")
-endforeach ()
 
 message(STATUS "ARCH_C_FLAGS   : ${ARCH_C_FLAGS}")
 message(STATUS "ARCH_CXX_FLAGS : ${ARCH_CXX_FLAGS}")
@@ -990,7 +985,7 @@ else ()
 
 	    if (NOT NO_SIMDE_IN_FAT)
                 message(STATUS "Building SIMDE backend in static fat runtime..")
-                include_directories(${PROJECT_SOURCE_DIR}/simde)
+
                 add_fat_component("simde" "hs_exec_simde" "${SIMDE_FLAGS} -march=x86-64 -msse2" "${hs_exec_SRCS}" FALSE)
                 list(APPEND RUNTIME_LIBS $<TARGET_OBJECTS:hs_exec_simde>)
             endif()
@@ -1040,7 +1035,7 @@ else ()
 
             if (NOT NO_SIMDE_IN_FAT)
                 message(STATUS "Building SIMDE backend in shared fat runtime..")
-                include_directories(${PROJECT_SOURCE_DIR}/simde)
+
                 add_fat_component("simde" "hs_exec_shared_simde" "${SIMDE_FLAGS} -march=x86-64 -msse2" "${hs_exec_SRCS}" TRUE)
 		list(APPEND RUNTIME_SHLIBS $<TARGET_OBJECTS:hs_exec_shared_simde>)
             endif()
