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 22, 2019
1 parent 5ec42df commit e3a52f6
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 @@ -346,6 +346,7 @@ def objc_compile_requirements(args, deps):
"""
defines = []
includes = []
system_includes = []
inputs = []
module_maps = []
static_framework_names = []
Expand All @@ -361,6 +362,7 @@ def objc_compile_requirements(args, deps):

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

if post_framework_cleanup:
static_framework_names.append(objc.static_framework_names)
Expand All @@ -384,6 +386,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 e3a52f6

Please sign in to comment.