[CMake][Darwin] Ignore stderr during SDKSetting.plist parsing

Don't print stderr to commandline when configuring compiler-rt for
darwin platforms. NFC.

Reviewed By: delcypher

Differential Revision: https://reviews.llvm.org/D108156
This commit is contained in:
Steven Wu 2021-09-09 12:08:51 -07:00
parent 3cb5aa8622
commit 05eaa2b42f
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ if(APPLE)
execute_process(COMMAND
/usr/libexec/PlistBuddy -c "Print :SupportedTargets:${os}:Archs" ${sdk_path}/SDKSettings.plist
OUTPUT_VARIABLE SDK_SUPPORTED_ARCHS
RESULT_VARIABLE PLIST_ERROR)
RESULT_VARIABLE PLIST_ERROR
ERROR_QUIET)
if (PLIST_ERROR EQUAL 0 AND
SDK_SUPPORTED_ARCHS MATCHES " ${arch}\n")
message(STATUS "Found ${arch} support in ${sdk_path}/SDKSettings.plist")