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

[PodTarget] Infer umbrella header

parent 290eca16
......@@ -270,7 +270,8 @@ module Pod
end
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
def custom_module_map
......
......@@ -140,14 +140,14 @@ module Pod
# module map.
#
def umbrella_header_path
support_files_dir + "#{label}-umbrella.h"
support_files_dir + "#{product_module_name}.h"
end
# @return [Pathname] the absolute path of the LLVM module map file that
# defines the module structure for the compiler.
#
def module_map_path
support_files_dir + "#{label}.modulemap"
support_files_dir + "#{product_module_name}.modulemap"
end
# @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