From 244811d856fe6199f1c137abe1e85e0ac0c374dc Mon Sep 17 00:00:00 2001 From: Dmitry Wolf Date: Sun, 7 Jul 2024 20:51:51 +0300 Subject: [PATCH] fix and speed up compilaton unicode-data.cpp takes very long to compile on x86_64 macos with clang 17.0.6 and aarch64 linux GNU 12.2.0 goes OOM on 1GB RAM SBC --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c2049df79c212..002d260bb079f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -28,3 +28,5 @@ if (BUILD_SHARED_LIBS) set_target_properties(llama PROPERTIES POSITION_INDEPENDENT_CODE ON) target_compile_definitions(llama PRIVATE LLAMA_SHARED LLAMA_BUILD) endif() + +set_source_files_properties(unicode-data.cpp PROPERTIES COMPILE_FLAGS -O1)