From e0bd89d01c056bfb1ecc794689f9371775ff9115 Mon Sep 17 00:00:00 2001 From: hezhiqiang Date: Fri, 25 Jul 2025 22:19:14 +0800 Subject: [PATCH] -O3 and -Wno-everything --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 01b058b826c..88fbf27e48f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,11 @@ set(OpenBLAS_PATCH_VERSION 30.dev) set(OpenBLAS_VERSION "${OpenBLAS_MAJOR_VERSION}.${OpenBLAS_MINOR_VERSION}.${OpenBLAS_PATCH_VERSION}") +# A known problem of OpenBLAS. +# It can not be built with -O0 optimization level. +# https://stackoverflow.com/questions/63023087/inline-asm-fails-to-compile-without-optimization?utm_source=chatgpt.com +add_compile_options(-Wno-everything -O3) + # Adhere to GNU filesystem layout conventions include(GNUInstallDirs)