Skip to content

Commit

Permalink
add C++ flags to the new arch
Browse files Browse the repository at this point in the history
  • Loading branch information
deniss-kaibagarovs committed Nov 18, 2024
1 parent 53c4204 commit d4e237d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dojo-react-native-pay-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Pod::Spec.new do |s|

# Don't install the dependencies when we run `pod install` in the old architecture.
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1" + " -fmodules -fcxx-modules" # Enable C++ compiler for modules
s.pod_target_xcconfig = {
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
Expand Down

0 comments on commit d4e237d

Please sign in to comment.