1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-05 19:55:47 +03:00

Add annotations to opensource/fbcode_builder

Reviewed By: shannonzhu

Differential Revision: D34332682

fbshipit-source-id: 498c63851f98dd76502a20a9d1589df5b0c4e7b9
This commit is contained in:
Pyre Bot Jr
2022-02-17 22:54:34 -08:00
committed by Facebook GitHub Bot
parent a9b46b7cc6
commit 1f77084c8e
8 changed files with 15 additions and 15 deletions

View File

@@ -137,7 +137,7 @@ def add_path_entry(
env.set(name, separator.join(val))
def add_flag(env, name, flag, append: bool = True) -> None:
def add_flag(env, name, flag: str, append: bool = True) -> None:
"""Cause `flag` to be added to the CXXFLAGS-style env var named
`name` held in the `env` dict. `append` specifies whether the
flag is added to the end (the default) or should be prepended if
@@ -180,7 +180,7 @@ def path_search(env, exename, defval=None):
return result
def _perform_path_search(path, exename):
def _perform_path_search(path, exename: str):
is_win = sys.platform.startswith("win")
if is_win:
exename = "%s.exe" % exename