Skip to content

Commit d19af87

Browse files
compile option for openblas (#340)
1 parent 4e6da5e commit d19af87

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ set(OpenBLAS_PATCH_VERSION 30.dev)
1313

1414
set(OpenBLAS_VERSION "${OpenBLAS_MAJOR_VERSION}.${OpenBLAS_MINOR_VERSION}.${OpenBLAS_PATCH_VERSION}")
1515

16+
# A known problem of OpenBLAS.
17+
# It can not be built with -O0 optimization level.
18+
# https://stackoverflow.com/questions/63023087/inline-asm-fails-to-compile-without-optimization?utm_source=chatgpt.com
19+
add_compile_options(-Wno-everything -O3)
20+
1621
# Adhere to GNU filesystem layout conventions
1722
include(GNUInstallDirs)
1823

0 commit comments

Comments
 (0)