Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect system includes from obcj dependencies #351

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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