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
This commit is contained in:
Dmitry Wolf 2024-07-07 20:51:51 +03:00 committed by GitHub
parent a8db2a9ce6
commit 244811d856
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)