From 871842a47581376d11c42a8f4a32424b2d1dd938 Mon Sep 17 00:00:00 2001 From: Snorlax Date: Sat, 3 Dec 2022 21:32:55 +0800 Subject: [PATCH] https://github.com/hedronvision/bazel-compile-commands-extractor/pull/89#discussion_r1037780681 refresh.template.py: do not suppress error when locate xcrun toolchain --- refresh.template.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/refresh.template.py b/refresh.template.py index 6951f45..972bac1 100644 --- a/refresh.template.py +++ b/refresh.template.py @@ -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'. @@ -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()