ocamlPackages.hxd: 0.3.2 -> 0.3.3 (#364231)
[NixPkgs.git] / pkgs / by-name / av / avalonia / 0002-disable-parallel-compile.patch
blobb1e3b8724ca5509c04795bab14a49e33bd2065e6
1 From 9ba51df4258d0dc2fe72d4f621d29073eeadc011 Mon Sep 17 00:00:00 2001
2 From: David McFarland <corngood@gmail.com>
3 Date: Sun, 11 Aug 2024 00:03:36 -0300
4 Subject: [PATCH 2/2] disable parallel compile
6 ---
7 nukebuild/Build.cs | 10 +++++++++-
8 1 file changed, 9 insertions(+), 1 deletion(-)
10 diff --git a/nukebuild/Build.cs b/nukebuild/Build.cs
11 index e3d5139bf..ce50db574 100644
12 --- a/nukebuild/Build.cs
13 +++ b/nukebuild/Build.cs
14 @@ -136,12 +136,20 @@ DotNetConfigHelper ApplySettingCore(DotNetConfigHelper c)
15 ProcessTasks.StartProcess("xcodebuild", args).AssertZeroExitCode();
16 });
18 + [Serializable]
19 + public class SerialBuildSettings : DotNetBuildSettings
20 + {
21 + protected override Arguments ConfigureProcessArguments(Arguments arguments) =>
22 + base.ConfigureProcessArguments(arguments)
23 + .Add("-m:1");
24 + }
26 Target Compile => _ => _
27 .DependsOn(Clean, CompileNative)
28 .DependsOn(CompileHtmlPreviewer)
29 .Executes(() =>
31 - DotNetBuild(c => ApplySetting(c)
32 + DotNetBuild(ApplySetting(new SerialBuildSettings())
33 .SetProjectFile(Parameters.MSBuildSolution)
35 });
36 --
37 2.42.2