From 2fc9a8df0fd6e8f4125eca817389654ac29e206e Mon Sep 17 00:00:00 2001 From: Adeel <3840695+am11@users.noreply.github.com> Date: Fri, 24 Dec 2021 19:53:50 +0200 Subject: [PATCH 1/2] Parse compiler version in init-compiler.sh --- eng/common/native/init-compiler.sh | 32 +++++++++++++++---- .../build/Microsoft.DotNet.CMake.Sdk.targets | 2 +- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/eng/common/native/init-compiler.sh b/eng/common/native/init-compiler.sh index e361e03fabd..6d7ba15e5f2 100755 --- a/eng/common/native/init-compiler.sh +++ b/eng/common/native/init-compiler.sh @@ -2,25 +2,45 @@ # # This file detects the C/C++ compiler and exports it to the CC/CXX environment variables # -# NOTE: some scripts source this file and rely on stdout being empty, make sure to not output anything here! +# NOTE: some scripts source this file and rely on stdout being empty, make sure to not output anything here! if [[ "$#" -lt 3 ]]; then echo "Usage..." - echo "init-compiler.sh