Skip to content

Commit

Permalink
apply PR 9476, update BuildXL and DetouredNodeLauncher which uses it
Browse files Browse the repository at this point in the history
  • Loading branch information
JanProvaznik committed Oct 15, 2024
1 parent 4044916 commit aa42ce0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eng/dependabot/Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<PackageVersion Include="LargeAddressAware" Version="1.0.5" />
<PackageVersion Update="LargeAddressAware" Condition="'$(LargeAddressAwareVersion)' != ''" Version="$(LargeAddressAwareVersion)" />

<PackageVersion Include="Microsoft.BuildXL.Processes" Version="0.1.0-20230929.2" />
<PackageVersion Include="Microsoft.BuildXL.Processes" Version="0.1.0-20231128.3" />
<PackageVersion Update="Microsoft.BuildXL.Processes" Condition="'$(BuildXLProcessesVersion)' != ''" Version="$(BuildXLProcessesVersion)" />

<PackageVersion Include="Microsoft.VisualStudio.Setup.Configuration.Interop" Version="3.2.2146" PrivateAssets="All" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using Microsoft.Build.Internal;
using Microsoft.Build.Shared;
using Microsoft.Build.Shared.FileSystem;
using static BuildXL.Processes.FileAccessManifest;

#nullable disable

Expand Down Expand Up @@ -106,7 +107,15 @@ public Process Start(string msbuildLocation, string commandLineArgs, int nodeId)
FileAccessPolicy.AllowAll | FileAccessPolicy.ReportAccess);

// Support shared compilation
info.FileAccessManifest.ChildProcessesToBreakawayFromSandbox = new string[] { NativeMethodsShared.IsWindows ? "VBCSCompiler.exe" : "VBCSCompiler" };
info.FileAccessManifest.ChildProcessesToBreakawayFromSandbox =
[
#if RUNTIME_TYPE_NETCORE
new BreakawayChildProcess(NativeMethodsShared.IsWindows ? "dotnet.exe" : "dotnet", "vbcscompiler.dll", CommandLineArgsSubstringContainmentIgnoreCase: true)
#else
new BreakawayChildProcess(NativeMethodsShared.IsWindows ? "VBCSCompiler.exe" : "VBCSCompiler")
#endif
];

info.FileAccessManifest.MonitorChildProcesses = true;
info.FileAccessManifest.IgnoreReparsePoints = true;
info.FileAccessManifest.UseExtraThreadToDrainNtClose = false;
Expand Down

0 comments on commit aa42ce0

Please sign in to comment.