Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set cocoapod spec's compiler_flags to xcodebuild arg OTHER_CFLAGS #178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/cocoapods-packager/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def build_static_lib_for_mac(static_libs, output)
def build_with_mangling(platform, options)
UI.puts 'Mangling symbols'
defines = Symbols.mangle_for_pod_dependencies(@spec.name, @static_sandbox_root)
defines << ' ' << @spec.consumer(platform).compiler_flags.join(' ')
defines << " OTHER_CFLAGS='" << @spec.consumer(platform).compiler_flags.join(' ') << "'"

UI.puts 'Building mangled framework'
xcodebuild(defines, options)
Expand All @@ -165,7 +165,7 @@ def clean_directory_for_dynamic_build

def compile(platform)
defines = "GCC_PREPROCESSOR_DEFINITIONS='$(inherited) PodsDummy_Pods_#{@spec.name}=PodsDummy_PodPackage_#{@spec.name}'"
defines << ' ' << @spec.consumer(platform).compiler_flags.join(' ')
defines << " OTHER_CFLAGS='" << @spec.consumer(platform).compiler_flags.join(' ') << "'"

if platform.name == :ios
options = ios_build_options
Expand Down