Skip to content

Commit

Permalink
Collect system includes from obcj dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Patti committed Nov 14, 2019
1 parent 31bae7a commit 22f0a85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions swift/internal/compiling.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ def objc_compile_requirements(args, deps):
"""
defines = []
includes = []
system_includes = []
inputs = []
module_maps = []
static_framework_names = []
Expand All @@ -404,6 +405,7 @@ def objc_compile_requirements(args, deps):

defines.append(objc.define)
includes.append(objc.include)
system_includes.append(objc.include_system)

static_framework_names.append(objc.static_framework_names)
all_frameworks.append(objc.framework_search_path_only)
Expand All @@ -420,6 +422,7 @@ def objc_compile_requirements(args, deps):
# Add the objc dependencies' header search paths so that imported modules
# can find their headers.
args.add_all(depset(transitive = includes), format_each = "-I%s")
args.add_all(depset(transitive = system_includes), before_each = "-Xcc", format_each = "-isystem%s")

# Add framework search paths for any prebuilt frameworks.
args.add_all(
Expand Down

0 comments on commit 22f0a85

Please sign in to comment.