Skip to content

Commit 16a322f

Browse files
comiuscopybara-github
authored andcommitted
Fix path.contains_up_level_references
skylib doesn't have it. PiperOrigin-RevId: 824418153 Change-Id: Ib1cc802925c0a685c897f41234f86ab0f5c7a86b
1 parent 65a547d commit 16a322f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cc/private/link/create_library_to_link.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The cc_common.create_library_to_link function.
1717
"""
1818

1919
load("@bazel_skylib//lib:paths.bzl", "paths")
20-
load("//cc/common:cc_helper_internal.bzl", "is_versioned_shared_library")
20+
load("//cc/common:cc_helper_internal.bzl", "is_versioned_shared_library", "path_contains_up_level_references")
2121
load("//cc/private:cc_internal.bzl", _cc_internal = "cc_internal")
2222
load("//cc/private/compile:lto_compilation_context.bzl", _EMPTY_LTO = "EMPTY_LTO_COMPILATION_CONTEXT")
2323
load("//cc/private/link:lto_backends.bzl", "create_shared_non_lto_artifacts")
@@ -272,7 +272,7 @@ def create_library_to_link(
272272
)
273273

274274
def _validate_symlink_path(attr, path):
275-
if not path or paths.is_absolute(path) or paths.contains_up_level_references(path):
275+
if not path or paths.is_absolute(path) or path_contains_up_level_references(path):
276276
fail("%s must be a relative file path. Got '%s" % (attr, path))
277277

278278
def _validate_extension(path, extensions, func = None, not_ext = [], fail = fail, empty_ext = False):

0 commit comments

Comments
 (0)