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:

committed by
Facebook GitHub Bot
parent
a9b46b7cc6
commit
1f77084c8e
@@ -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
|
||||
|
Reference in New Issue
Block a user