Skip to content

Commit

Permalink
https://github.com/hedronvision/bazel-compile-commands-extractor/pull…
Browse files Browse the repository at this point in the history
…/89#discussion_r1037780681

refresh.template.py: do not suppress error when locate xcrun toolchain
  • Loading branch information
xinzhengzhang committed Dec 4, 2022
1 parent d785abb commit 871842a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions refresh.template.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,6 @@ def _get_apple_active_clang():
"""Get path to xcode-select'd clang version."""
return subprocess.check_output(
('xcrun', '--find', 'clang'),
stderr=subprocess.DEVNULL, # Suppress superfluous error messages like "Requested but did not find extension point with identifier..."
encoding=locale.getpreferredencoding()
).rstrip()
# Unless xcode-select has been invoked (like for a beta) we'd expect, e.g., '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' or '/Library/Developer/CommandLineTools/usr/bin/clang'.
Expand All @@ -712,7 +711,6 @@ def _get_apple_active_swiftc():
"""Get path to xcode-select'd swiftc version."""
return subprocess.check_output(
('xcrun', '--find', 'swiftc'),
stderr=subprocess.DEVNULL, # Suppress superfluous error messages like "Requested but did not find extension point with identifier..."
encoding=locale.getpreferredencoding()
).rstrip()

Expand Down

0 comments on commit 871842a

Please sign in to comment.