aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/build_defs/apple/shared.bzl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build_defs/apple/shared.bzl')
-rw-r--r--tools/build_defs/apple/shared.bzl4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/build_defs/apple/shared.bzl b/tools/build_defs/apple/shared.bzl
index bebfb7a9ad..976911b177 100644
--- a/tools/build_defs/apple/shared.bzl
+++ b/tools/build_defs/apple/shared.bzl
@@ -40,6 +40,10 @@ See :func:`apple_action`."""
XCRUNWRAPPER_LABEL = "//external:xcrunwrapper"
"""The label for xcrunwrapper tool."""
+def module_cache_path(ctx):
+ """Returns the Clang module cache path to use for this rule."""
+ return ctx.configuration.genfiles_dir.path + "/_objc_module_cache"
+
def apple_action(ctx, **kw):
"""Creates an action that only runs on MacOS/Darwin.