Difference between revisions of "Yhc/Building"

From HaskellWiki
< Yhc
Jump to navigation Jump to search
(Change instructions to scons)
m (Use lists correctly)
Line 24: Line 24:
   
 
To build parts of Yhc separately the following commands can be used:
 
To build parts of Yhc separately the following commands can be used:
* scons configure - Just configure.
+
* scons configure - Just configure.
* scons build - Don't update dependencies, just build.
+
* scons build - Don't update dependencies, just build.
* scons build yhi - Only build the interpretor.
+
* scons build yhi - Only build the interpretor.
* scons build yhc - Only build the compiler.
+
* scons build yhc - Only build the compiler.
* scons build library - Only build the libraries.
+
* scons build library - Only build the libraries.
   
 
Other commands available are:
 
Other commands available are:
* scons clean - Remove temporary files.
+
* scons clean - Remove temporary files.
* scons fullclean - Completely wipe everything created by the build process.
+
* scons fullclean - Completely wipe everything created by the build process.
* scons depends - Download or update the dependencies
+
* scons depends - Download or update the dependencies
   
 
To test Yhc has been build correctly type 'scons test'.
 
To test Yhc has been build correctly type 'scons test'.

Revision as of 12:03, 9 August 2006

Part of Yhc

(Download)

Requirements

You need a C compiler - both gcc and MS Visual C are known to be OK.

You need scons, which in turn requires Python to be installed.

The process of building Yhc requires ghc-6.4 or later, Subversion and darcs.

Getting the Code

The source code is stored in a darcs repo, to get the code do:

darcs get http://www.cs.york.ac.uk/fp/darcs/yhc-devel/

You can browse the code and its history on-line through a darcsweb interface.

There is a buildbot script that runs on every change, the results of which are available here. If the build is busted, hopefully the developers will fix it soon. If your build is busted, but the buildbot succeeds, consider adding your machine as a buildbot slave - then it will never get broken again.

Building

To build yhc simply type 'scons' into a console Window. This should automatically detect your build environment and place the Yhc binaries into inst/

To build parts of Yhc separately the following commands can be used:

  • scons configure - Just configure.
  • scons build - Don't update dependencies, just build.
  • scons build yhi - Only build the interpretor.
  • scons build yhc - Only build the compiler.
  • scons build library - Only build the libraries.

Other commands available are:

  • scons clean - Remove temporary files.
  • scons fullclean - Completely wipe everything created by the build process.
  • scons depends - Download or update the dependencies

To test Yhc has been build correctly type 'scons test'.

Please report any problems you have to the mailing list.