diff --git a/android/src/main/CMakeLists.txt b/android/src/main/CMakeLists.txt index 5144b9d8..cb3d610d 100644 --- a/android/src/main/CMakeLists.txt +++ b/android/src/main/CMakeLists.txt @@ -49,7 +49,7 @@ function(build_library target_name) # NOTE: If you want to debug the native code, you can uncomment if and endif # if (NOT ${CMAKE_BUILD_TYPE} STREQUAL "Debug") - target_compile_options(${target_name} PRIVATE -Ofast -DNDEBUG) + target_compile_options(${target_name} PRIVATE -O3 -DNDEBUG) target_compile_options(${target_name} PRIVATE -fvisibility=hidden -fvisibility-inlines-hidden) target_compile_options(${target_name} PRIVATE -ffunction-sections -fdata-sections) diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index d83569a1..8bf07c5e 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -1242,7 +1242,7 @@ SPEC CHECKSUMS: glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b hermes-engine: 10fbd3f62405c41ea07e71973ea61e1878d07322 libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 - llama-rn: d7549834b6e00cd3ec0608a8495052de8f47224d + llama-rn: 0abcf4f4f58615499974d3a30876ddf8ca986012 RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 RCTRequired: a2faf4bad4e438ca37b2040cb8f7799baa065c18 RCTTypeSafety: cb09f3e4747b6d18331a15eb05271de7441ca0b3 diff --git a/llama-rn.podspec b/llama-rn.podspec index 7257507d..30da99e8 100644 --- a/llama-rn.podspec +++ b/llama-rn.podspec @@ -11,7 +11,7 @@ end # Use base_optimizer_flags = "" for debug builds # base_optimizer_flags = "" -base_optimizer_flags = "-Ofast -DNDEBUG" +base_optimizer_flags = "-O3 -DNDEBUG" Pod::Spec.new do |s| s.name = "llama-rn"