Skip to content

Commit

Permalink
Add a central switch to turn off AOT, rather than relying on Continue…
Browse files Browse the repository at this point in the history
…OnError
  • Loading branch information
sorear committed Aug 6, 2010
1 parent fb128e3 commit c392842
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Niecza.proj
Expand Up @@ -9,6 +9,7 @@

<!-- Other centralized variables -->
<STDUrl>http://svn.pugscode.org/pugs/src/perl6</STDUrl>
<UseAOT>Y</UseAOT>

<!-- infrastructure -->
<STD_existed Condition="Exists('STD_checkout')">Y</STD_existed>
Expand Down Expand Up @@ -38,7 +39,7 @@
<Target Name="Kernel.dll" Inputs="Kernel.cs" Outputs="Kernel.dll">
<Csc Sources="Kernel.cs" TargetType="library"
OutputAssembly="Kernel.dll"/>
<Exec Command="mono --aot Kernel.dll" ContinueOnError="true"/>
<Exec Condition="$(UseAOT) == 'Y'" Command="mono --aot Kernel.dll"/>
</Target>

<Target Name="CORE.cs" Inputs="@(CompilerPerl);SAFE_ast.store;CORE.setting" Outputs="CORE.cs;CORE_ast.store" DependsOnTargets="BuildSTD;SAFE.cs;Grammar;PerlTask">
Expand All @@ -56,19 +57,19 @@
<Target Name="CORE.dll" Inputs="CORE.cs;SAFE.dll;Kernel.dll" Outputs="CORE.dll" DependsOnTargets="CORE.cs;SAFE.dll;Kernel.dll">
<Csc Sources="CORE.cs" TargetType="library"
OutputAssembly="CORE.dll" References="SAFE.dll;Kernel.dll"/>
<Exec Command="mono --aot CORE.dll" ContinueOnError="true"/>
<Exec Condition="$(UseAOT) == 'Y'" Command="mono --aot CORE.dll"/>
</Target>

<Target Name="SAFE.dll" Inputs="SAFE.cs;Kernel.dll" Outputs="SAFE.dll" DependsOnTargets="SAFE.cs;Kernel.dll">
<Csc Sources="SAFE.cs" TargetType="library"
OutputAssembly="SAFE.dll" References="Kernel.dll"/>
<Exec Command="mono --aot SAFE.dll" ContinueOnError="true"/>
<Exec Condition="$(UseAOT) == 'Y'" Command="mono --aot SAFE.dll"/>
</Target>

<Target Name="Test.dll" Inputs="Test.cs;CORE.dll;Kernel.dll" Outputs="Test.dll" DependsOnTargets="Test.cs;CORE.dll;Kernel.dll">
<Csc Sources="Test.cs" TargetType="library"
OutputAssembly="Test.dll" References="CORE.dll;Kernel.dll"/>
<Exec Command="mono --aot Test.dll" ContinueOnError="true"/>
<Exec Condition="$(UseAOT) == 'Y'" Command="mono --aot Test.dll"/>
</Target>

<!-- Proper compiler bits -->
Expand Down

0 comments on commit c392842

Please sign in to comment.