Skip to content

Commit

Permalink
A few tweaks for ggoebel
Browse files Browse the repository at this point in the history
(Who may not rest until he actually reports these bugs)
  • Loading branch information
sorear committed Aug 22, 2010
1 parent 1801379 commit 16c4aaa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
11 changes: 7 additions & 4 deletions Niecza.proj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
Outputs="obj\Kernel.dll">
<Csc Sources="lib\Kernel.cs;lib\Cursor.cs" TargetType="library"
OutputAssembly="obj\Kernel.dll"/>
<Exec Condition="$(UseAOT) == 'Y'"
<Exec Condition="$(UseAOT) == 'Y'" ContinueOnError="true"
Command="mono --aot obj\Kernel.dll"/>
</Target>

Expand All @@ -67,22 +67,25 @@
<Csc Sources="obj\CORE.cs" TargetType="library"
AdditionalLibPaths="obj" OutputAssembly="obj\CORE.dll"
References="SAFE.dll;Kernel.dll"/>
<Exec Condition="$(UseAOT) == 'Y'" Command="mono --aot obj\CORE.dll"/>
<Exec Condition="$(UseAOT) == 'Y'" Command="mono --aot obj\CORE.dll"
ContinueOnError="true"/>
</Target>

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

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

<!-- Proper compiler bits -->
Expand Down
8 changes: 6 additions & 2 deletions README.pod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ C<test.pl>.

=item *

Mono (2.6.4 recommended)
Mono. 2.6.4 and later are well-tested, though success has been reported with 2.4.x as well. ggoebel on #perl6 reports that 2.6.7 fails with a bus error on OS X 10.4 x86, but 2.6.4 works; 2.6.7 is fine on other platforms.

=item *

Expand All @@ -32,7 +32,7 @@ File::ShareDir, and YAML::XS from CPAN

=head1 USING

$ xbuild
$ xbuild # see note
... snip build spam ...
$ ./niecza_eval
> say 2 + 2
Expand All @@ -42,6 +42,10 @@ File::ShareDir, and YAML::XS from CPAN
4
$

Note: Some versions of xbuild seem to ignore the ContinueOnError hint, and some
builds of mono do not support C<--aot>. If both factors combine, you will need
to change C<UseAOT> to C<N> in Niecza.proj for the build to succeed.

=head1 COPYRIGHT AND LICENSE

Niecza is Copyright 2010 Stefan O'Rear et al. It may be used and distributed
Expand Down

0 comments on commit 16c4aaa

Please sign in to comment.