Commit 7a313a8a authored by Samuel Giddins's avatar Samuel Giddins

[PodTarget] Infer umbrella header

parent 290eca16
...@@ -270,7 +270,8 @@ module Pod ...@@ -270,7 +270,8 @@ module Pod
end end
def create_umbrella_header def create_umbrella_header
return super unless custom_module_map inferred_umbrella_header = target.build_headers.root + "#{target.product_module_name}/#{target.product_module_name}.h"
return super unless custom_module_map || inferred_umbrella_header.file?
end end
def custom_module_map def custom_module_map
......
...@@ -140,14 +140,14 @@ module Pod ...@@ -140,14 +140,14 @@ module Pod
# module map. # module map.
# #
def umbrella_header_path def umbrella_header_path
support_files_dir + "#{label}-umbrella.h" support_files_dir + "#{product_module_name}.h"
end end
# @return [Pathname] the absolute path of the LLVM module map file that # @return [Pathname] the absolute path of the LLVM module map file that
# defines the module structure for the compiler. # defines the module structure for the compiler.
# #
def module_map_path def module_map_path
support_files_dir + "#{label}.modulemap" support_files_dir + "#{product_module_name}.modulemap"
end end
# @return [Pathname] the absolute path of the prefix header file. # @return [Pathname] the absolute path of the prefix header file.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment