Skip to content

Commit

Permalink
Try to actually perform symbol mangling
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Watters committed Jul 22, 2014
1 parent f084403 commit 562fe64
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/builder.rb
Expand Up @@ -73,22 +73,22 @@ def build_static_lib_for_mac(static_libs, output)
`libtool -static -o #{output} #{static_libs.join(' ')}`
end

def build_with_mangling(defines)
def build_with_mangling
UI.puts 'Mangling symbols'
defines = Symbols.mangle_for_pod_dependencies(@spec.name, @sandbox_root)
UI.puts 'Building mangled framework'
xcodebuild(defines)
Symbols.mangle_for_pod_dependencies(@spec.name, @sandbox_root).tap do |defines|
UI.puts 'Building mangled framework'
xcodebuild(defines)
end
end

def compile
if @spec.dependencies.count > 0 && @mangle
if @spec.dependencies.count > 0 #&& @mangle
xcodebuild
build_with_mangling
else
xcodebuild
build_with_mangling(defines)
defines
nil
end

xcodebuild
nil
end

def copy_headers
Expand Down

0 comments on commit 562fe64

Please sign in to comment.