Enable building Mono LLVM osx-x64 NuGets (#32092)
authorFilip Navara <filip.navara@gmail.com>
Tue, 11 Feb 2020 21:48:31 +0000 (22:48 +0100)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2020 21:48:31 +0000 (22:48 +0100)
* Enable building Mono LLVM osx-x64 NuGets

* Fix restoring on LLVM NuGets on macOS

* Enable release builds too

* Remove dependency on NETCoreSdkRuntimeIdentifier

eng/pipelines/runtime.yml
src/mono/llvm/llvm-init.proj

index 58c511b6f29ddff5e915cf6d16019547e220e9e5..47c8516d442b39733efbcece9374e1066aca2d02 100644 (file)
@@ -262,7 +262,7 @@ jobs:
     runtimeFlavor: mono
     buildConfig: debug
     platforms:
-    - OSX_x64
+    - OSX_x64
     - Linux_x64
     # - Linux_arm
     # - Linux_arm64
@@ -290,7 +290,7 @@ jobs:
     runtimeFlavor: mono
     buildConfig: release
     platforms:
-    - OSX_x64
+    - OSX_x64
     - Linux_x64
     # - Linux_arm
     # - Linux_arm64
@@ -696,4 +696,4 @@ jobs:
         or(
           eq(dependencies.checkout.outputs['SetPathVars_coreclr.containsChange'], true),
           eq(dependencies.checkout.outputs['SetPathVars_libraries.containsChange'], true),
-          eq(variables['isFullMatrix'], true))
\ No newline at end of file
+          eq(variables['isFullMatrix'], true))
index 4a6027a322eb821b982fd77833b24113a747a844..d137cb04a7e8388a76735916d9a781041af0eb21 100644 (file)
 
   <Target Name="CopyLLVMToTree" AfterTargets="Restore">
     <ItemGroup>
-      <LLVMFiles Include="$(NuGetPackageRoot)\runtime.$(NETCoreSdkRuntimeIdentifier).microsoft.netcore.runtime.mono.llvm.sdk\$(runtimelinuxx64MicrosoftNETCoreRuntimeMonoLLVMSdkVersion)\tools\$(NETCoreSdkRuntimeIdentifier)\**" />
-      <LLVMFiles Include="$(NuGetPackageRoot)\runtime.$(NETCoreSdkRuntimeIdentifier).microsoft.netcore.runtime.mono.llvm.tools\$(runtimelinuxx64MicrosoftNETCoreRuntimeMonoLLVMToolsVersion)\tools\$(NETCoreSdkRuntimeIdentifier)\**" />
+      <LLVMFiles Condition="'$(OSGroup)' == 'Linux'" Include="$(NuGetPackageRoot)\runtime.linux-x64.microsoft.netcore.runtime.mono.llvm.sdk\$(runtimelinuxx64MicrosoftNETCoreRuntimeMonoLLVMSdkVersion)\tools\linux-x64\**" />
+      <LLVMFiles Condition="'$(OSGroup)' == 'Linux'" Include="$(NuGetPackageRoot)\runtime.linux-x64.microsoft.netcore.runtime.mono.llvm.tools\$(runtimelinuxx64MicrosoftNETCoreRuntimeMonoLLVMToolsVersion)\tools\linux-x64\**" />
+      <LLVMFiles Condition="'$(OSGroup)' == 'Windows_NT'" Include="$(NuGetPackageRoot)\runtime.win-x64.microsoft.netcore.runtime.mono.llvm.sdk\$(runtimewinx64MicrosoftNETCoreRuntimeMonoLLVMSdkVersion)\tools\win-x64\**" />
+      <LLVMFiles Condition="'$(OSGroup)' == 'Windows_NT'" Include="$(NuGetPackageRoot)\runtime.win-x64.microsoft.netcore.runtime.mono.llvm.tools\$(runtimewinx64MicrosoftNETCoreRuntimeMonoLLVMToolsVersion)\tools\win-x64\**" />
+      <LLVMFiles Condition="'$(OSGroup)' == 'OSX'" Include="$(NuGetPackageRoot)\runtime.osx.10.12-x64.microsoft.netcore.runtime.mono.llvm.sdk\$(runtimeosx1012x64MicrosoftNETCoreRuntimeMonoLLVMSdkVersion)\tools\osx.10.12-x64\**" />
+      <LLVMFiles Condition="'$(OSGroup)' == 'OSX'" Include="$(NuGetPackageRoot)\runtime.osx.10.12-x64.microsoft.netcore.runtime.mono.llvm.tools\$(runtimeosx1012x64MicrosoftNETCoreRuntimeMonoLLVMToolsVersion)\tools\osx.10.12-x64\**" />
     </ItemGroup>
 
     <Copy SourceFiles="@(LLVMFiles)" DestinationFolder="$(MonoLLVMDir)\%(RecursiveDir)">