Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Fixes QsCompiler build scripts in macos, linux (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
eginez authored and bettinaheim committed Nov 20, 2019
1 parent 7836e10 commit 1ca68a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/QsCompiler/TestTargets/Libraries/Library1/Library1.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
</ItemGroup>

<PropertyGroup>
<QscExe>dotnet "..\..\..\CommandLineTool\bin\$(Configuration)\netcoreapp3.0\qsc.dll"</QscExe>
<QscExe>dotnet</QscExe>
<QsLib>"../../../CommandLineTool/bin/$(Configuration)/netcoreapp3.0/qsc.dll"</QsLib>
</PropertyGroup>

<Target Name="EnsureRecompileOnChange">
Expand All @@ -34,7 +35,7 @@
<QsSourceFiles Include="**\*.qs" Exclude="@(QsSourceFiles)" />
</ItemGroup>
<PropertyGroup>
<QscCommand>$(QscExe) build -v --format MsBuild --proj "$(MSBuildProjectName)" -i "@(QsSourceFiles,'" "')" -r "@(QsReferences,'" "')" -o $(OutputPath)</QscCommand>
<QscCommand>$(QscExe) $(QsLib) build -v --format MsBuild --proj "$(MSBuildProjectName)" -i "@(QsSourceFiles,'" "')" -r "@(QsReferences,'" "')" -o $(OutputPath)</QscCommand>
</PropertyGroup>
<Exec Command="$(QscCommand)" IgnoreExitCode="false" />
</Target>
Expand Down
5 changes: 3 additions & 2 deletions src/QsCompiler/TestTargets/Simulation/Example/Example.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
<ExecutionTestsDir>ExecutionTests\</ExecutionTestsDir>
<GenFilesDir>generated\</GenFilesDir>
<SimulationTarget>"..\Target\bin\$(Configuration)\netstandard2.1\Simulation.dll"</SimulationTarget>
<QscExe>dotnet "..\..\..\CommandLineTool\bin\$(Configuration)\netcoreapp3.0\qsc.dll"</QscExe>
<QscExe>dotnet</QscExe>
<QsLib>"../../../CommandLineTool/bin/$(Configuration)/netcoreapp3.0/qsc.dll"</QsLib>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -57,7 +58,7 @@
<QsSourceFiles Include="**\*.qs" Exclude="@(QsSourceFiles)" />
</ItemGroup>
<PropertyGroup>
<QscCommand>$(QscExe) build -v --format MsBuild --proj "$(MSBuildProjectName)" -i "@(QsSourceFiles,'" "')" -r "@(QsReferences,'" "')" -o $(GenFilesDir) --load "$(SimulationTarget)"</QscCommand>
<QscCommand>$(QscExe) $(QsLib) build -v --format MsBuild --proj "$(MSBuildProjectName)" -i "@(QsSourceFiles,'" "')" -r "@(QsReferences,'" "')" -o $(GenFilesDir) --load "$(SimulationTarget)"</QscCommand>
</PropertyGroup>
<Message Importance="low" Text="executing command '$(QscCommand)'" />
<Exec Command="$(QscCommand)" IgnoreExitCode="false" />
Expand Down

0 comments on commit 1ca68a9

Please sign in to comment.