Skip to content

Commit

Permalink
Merge pull request #82 from bazel-ios/segiddins/remove-gmodules
Browse files Browse the repository at this point in the history
Make swift & objc object files cachable
  • Loading branch information
segiddins authored Jun 30, 2020
2 parents 67d44fd + 2936fae commit ce9349c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rules/library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -468,12 +468,13 @@ def apple_library(name, library_tools = {}, export_private_headers = True, names
objc_copts += [
"-fmodules",
"-fmodule-name=%s" % module_name,
"-gmodules",
]

swift_copts += [
"-Xcc",
"-D__SWIFTC__",
"-Xfrontend",
"-no-clang-module-breadcrumbs",
]

swift_version = _canonicalize_swift_version(kwargs.pop("swift_version", None))
Expand Down

0 comments on commit ce9349c

Please sign in to comment.