Skip to content

Commit

Permalink
Merge pull request #27 from bharathappali/update-building-doc
Browse files Browse the repository at this point in the history
Building.md updated to reflect new changes in build process
  • Loading branch information
charliegracie authored Apr 15, 2019
2 parents 6c2197a + 40e8eea commit bef52e3
Showing 1 changed file with 29 additions and 11 deletions.
40 changes: 29 additions & 11 deletions guide/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,41 @@ lang: en

# Building

### How to build a standalone Eclipse OMR with a basic configuration
### How to Build a Standalone Eclipse OMR with a basic configuration

To build a standalone Eclipse OMR, run the following commands from the top of the source tree. The top of the Eclipe OMR source tree is the directory that contains `run_configure.mk`. Note that on Windows systems, you must use a shell script interpreter such as bash to run the configure command.
To build standalone Eclipse OMR, run the following commands from the root of the
source tree.

# Generate autotools makefiles with SPEC-specific presets
make -f run_configure.mk SPEC=linux_x86-64 OMRGLUE=./example/glue
# Create a build directory and cd into it
mkdir build
cd build

# Build
#generate the build system using cmake
cmake ..

# Build (you can optionally compile in parallel by adding -j<N> to the make command)
make

# Run tests (note that no contribution should cause new test failures in "make test")
make test
# Run tests (note that no contribution should cause new test failures in testing).
# Use the `-V` option to see verbose output from the tests.
ctest [-V]

### Building Eclipse OMR on Windows using Visual Studio

Run the following command for a list of configure makefile targets:
The following instructions below demonstrate the steps to build Eclipse OMR on Windows
using Visual Studios. In the example Visual Studio 11 2012 Win64 is being used.
You can easily switch this to the version of Visual Studio you would like to use.

make -f run_configure.mk help
# Create a build directory and cd into it
mkdir build
cd build

Run the following command for a list of build targets:
#generate the build system using cmake
cmake -G "Visual Studio 11 2012 Win64" ..

# Build
cmake --build .

# Run tests (note that no contribution should cause new test failures in "make test")
ctest

make help

0 comments on commit bef52e3

Please sign in to comment.