Skip to content

Commit

Permalink
Silence prints from Apple SDK locator scripts during gclient hooks (#840
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderso authored Mar 26, 2024
1 parent 2a16784 commit ba3ca69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion build/config/ios/ios_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def main(argv):
frameworks_symlink = os.path.join(libraries_path, 'Frameworks')
symlink(frameworks_location, frameworks_symlink)
sdk_output = symlink_target
print(sdk_output)
if not args.as_gclient_hook:
print(sdk_output)
return 0


Expand Down
8 changes: 5 additions & 3 deletions build/mac/find_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,13 @@ def main():
symlink(sdk_output, symlink_target)
sdk_output = symlink_target

print(sdk_output)
return best_sdk
if not options.as_gclient_hook:
print(sdk_output)
print(best_sdk)
return 0


if __name__ == '__main__':
if sys.platform != 'darwin':
raise Exception("This script only runs on Mac")
print((main()))
sys.exit((main()))

0 comments on commit ba3ca69

Please sign in to comment.