Skip to content

Commit

Permalink
feat: use -O3
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Nov 2, 2023
1 parent 6e4c9bc commit ae28516
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion android/src/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion llama-rn.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ae28516

Please sign in to comment.