From 708913b8586e4d36fda5dd79fb519394becc724e Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 24 Jun 2024 05:53:24 +0200 Subject: Include build instructions --- README | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) (limited to 'README') diff --git a/README b/README index 29debd7..75fb8b5 100644 --- a/README +++ b/README @@ -8,6 +8,48 @@ use the given language’s translation of the animal’s name (e.g. ‘Órix’ Portuguese or ‘Όρυξ’ in Greek) as opposed to using the English name. + ────────────────────── + Build Instructions + ────────────────────── + +Building the Oryx compiler is rather trivial. The steps are as follows: + +1. Install the LLVM libraries and -headers. They should be available + through your systems package manager. Do note that as on 24/06/2024 + the version of LLVM being utilized is 17.0.6. The compiler may work + with other versions, but it isn’t guaranteed. + +2. Clone the compiler repository. + + $ git clone https://github.com/Mango0x45/oryx.git + +3. Bootstrap and run the build script. + + $ cc -o make make.c + $ ./make # See below for more details + +If you followed the above steps, you should find the compiler located in +the root directory of the git repository under the name ‘oryx’. + +The build script takes a few optional paramters that might be of +interest. They are as follows: + + -F Force rebuild the compiler and its dependencies in vendor/. + -f Force rebuild the compiler but not its dependencies in vendor/. + -r Build a release build with optimizations enabled. + -S Do not build with the GCC sanitizer. This option is not required + if -r was specified. + +The build script also accepts some subcommands. They are as follows: + + clean Delete all build artifacts and compiled binaries. + distclean Delete all build artifacts and compiled binaries, as well + as those creates by any dependencies in vendor/. + test Run the tests in test/. This subcommand should only be + run after a regular invocation of the build script so + that the tests get compiled. + + ────────────────────────────── Existing Language Features ────────────────────────────── -- cgit v1.2.3