Format bzl files with new buildifier
Summary: Build file formatting Reviewed By: ttsugriy Differential Revision: D9778749 fbshipit-source-id: 4ee3743fabdbb9202b1fe1334fd255e9734352e2
This commit is contained in:
committed by
Facebook Github Bot
parent
e224a29d1c
commit
2e66f8d828
@@ -60,18 +60,18 @@ LIBRARY_COMPILER_FLAGS = BASE_COMPILER_FLAGS + [
|
|||||||
]
|
]
|
||||||
|
|
||||||
def _paths_join(path, *others):
|
def _paths_join(path, *others):
|
||||||
"""Joins one or more path components."""
|
"""Joins one or more path components."""
|
||||||
result = path
|
result = path
|
||||||
|
|
||||||
for p in others:
|
for p in others:
|
||||||
if p.startswith("/"): # absolute
|
if p.startswith("/"): # absolute
|
||||||
result = p
|
result = p
|
||||||
elif not result or result.endswith("/"):
|
elif not result or result.endswith("/"):
|
||||||
result += p
|
result += p
|
||||||
else:
|
else:
|
||||||
result += "/" + p
|
result += "/" + p
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def subdir_glob(glob_specs, exclude = None, prefix = ""):
|
def subdir_glob(glob_specs, exclude = None, prefix = ""):
|
||||||
"""Returns a dict of sub-directory relative paths to full paths.
|
"""Returns a dict of sub-directory relative paths to full paths.
|
||||||
|
Reference in New Issue
Block a user