Skip to content

Commit

Permalink
Merge branch 'fix/customfilebuildstep-relative-executable' into 'main'
Browse files Browse the repository at this point in the history
Fix CustomFileBuildStep to not make Executable paths relative when UseExecutableFromSystemPath is set

See merge request Sharpmake/sharpmake!582
  • Loading branch information
jspelletier committed Nov 29, 2024
2 parents 4bee97e + 786bc35 commit 669ceb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sharpmake/Project.Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2322,7 +2322,10 @@ public virtual CustomFileBuildStepData MakePathRelative(Resolver resolver, Func<
{
var relativeData = new CustomFileBuildStepData();
relativeData.KeyInput = MakeRelativeTool(KeyInput, true);
relativeData.Executable = MakeRelativeTool(Executable, true);
if (!UseExecutableFromSystemPath)
relativeData.Executable = MakeRelativeTool(Executable, true);
else
relativeData.Executable = Executable;
relativeData.Output = MakeRelativeTool(Output, true);
using (resolver.NewScopedParameter("input", relativeData.KeyInput))
using (resolver.NewScopedParameter("output", relativeData.Output))
Expand Down

0 comments on commit 669ceb8

Please sign in to comment.