Skip to content
Prev Previous commit
Next Next commit
fix paths for the fslex and fsyacc invocations because the paths were…
…n't set in the makefile
  • Loading branch information
baronfel committed Mar 25, 2019
commit 7744ef1a0d860ad02784b4290983529a93715438
8 changes: 4 additions & 4 deletions src/buildtools/buildtools.targets
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
BeforeTargets="CoreCompile">

<PropertyGroup>
<FsLexPath Condition="'$(FsLexPath)' == ''">$(ArtifactsDir)\Bootstrap\fslex.dll</FsLexPath>
<FsLexPath Condition="'$(FsLexPath)' == ''">$(ArtifactsDir)\bin\fslex\Proto\netcoreapp2.0\fslex.dll</FsLexPath>
</PropertyGroup>

<!-- Create the output directory -->
<MakeDir Directories="$(FsLexOutputFolder)"/>

<!-- Run the tool -->
<Exec Command="&quot;$(DotNetTool)&quot; &quot;$(FsLexPath)&quot; -o &quot;$(FsLexOutputFolder)%(FsLex.Filename).fs&quot; %(FsLex.OtherFlags) %(FsLex.Identity)" />
<Exec Command="$(DotNetTool) $(FsLexPath) -o $(FsLexOutputFolder)%(FsLex.Filename).fs %(FsLex.OtherFlags) %(FsLex.Identity)" />

<!-- Make sure it will get cleaned -->
<CreateItem Include="$(FsLexOutputFolder)%(FsLex.Filename).fs">
Expand All @@ -43,14 +43,14 @@
BeforeTargets="CoreCompile">

<PropertyGroup>
<FsYaccPath Condition="'$(FsYaccPath)' == ''">$(ArtifactsDir)\Bootstrap\fsyacc.dll</FsYaccPath>
<FsYaccPath Condition="'$(FsYaccPath)' == ''">$(ArtifactsDir)\bin\fsyacc\Proto\netcoreapp2.0\fsyacc.dll</FsYaccPath>
</PropertyGroup>

<!-- Create the output directory -->
<MakeDir Directories="$(FsYaccOutputFolder)" />

<!-- Run the tool -->
<Exec Command="&quot;$(DotNetTool)&quot; &quot;$(FsYaccPath)&quot; -o &quot;$(FsYaccOutputFolder)%(FsYacc.Filename).fs&quot; %(FsYacc.OtherFlags) %(FsYacc.Identity)" />
<Exec Command="$(DotNetTool) $(FsYaccPath) -o $(FsYaccOutputFolder)%(FsYacc.Filename).fs %(FsYacc.OtherFlags) %(FsYacc.Identity)" />

<!-- Make sure it will get cleaned -->
<CreateItem Include="$(FsYaccOutputFolder)%(FsYacc.Filename).fs">
Expand Down