From 4d55f3a747ae1487f6eec8f811c9a4633dc27275 Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Tue, 5 Oct 2021 09:30:37 -0700 Subject: [PATCH] Use xcrun to find the compiler and sysroot for Apple builds. --- .../NativeExports/NativeExports.csproj | 39 ++++++++++++------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/src/libraries/System.Runtime.InteropServices/tests/TestAssets/NativeExports/NativeExports.csproj b/src/libraries/System.Runtime.InteropServices/tests/TestAssets/NativeExports/NativeExports.csproj index 052be4d695354..08defdf7600b6 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/TestAssets/NativeExports/NativeExports.csproj +++ b/src/libraries/System.Runtime.InteropServices/tests/TestAssets/NativeExports/NativeExports.csproj @@ -20,9 +20,13 @@ - - + $(Compiler) clang @@ -34,16 +38,6 @@ StandardOutputImportance="Low"> - - - arm64-apple-macos11 x86_64-apple-macos10.13 + macosx + + + + + + + + + -target $(TargetTriple) - -target $(TargetTriple) + -isysroot "$(SysRootIncludePath)" -target $(TargetTriple)