Skip to content

Commit

Permalink
Fix syntax for additional flag (new arch)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketraman committed Aug 17, 2024
1 parent 7fa2096 commit 44d3db8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ folly_version = folly_config[:version]
is_new_arch_enabled = ENV["RCT_NEW_ARCH_ENABLED"] == "1"
use_hermes = ENV['USE_HERMES'] == nil || ENV['USE_HERMES'] == '1'

new_arch_enabled_flag = (is_new_arch_enabled ? " -DRCT_NEW_ARCH_ENABLED" : "")
new_arch_enabled_flag = (is_new_arch_enabled ? " -DRCT_NEW_ARCH_ENABLED=1" : "")
hermes_flag = (use_hermes ? " -DUSE_HERMES=1" : "")
other_cflags = "$(inherited) " + folly_compiler_flags + new_arch_enabled_flag + hermes_flag

Expand Down

0 comments on commit 44d3db8

Please sign in to comment.