From bf71a6bad5b694df65368f020f8b3dd3032aed4e Mon Sep 17 00:00:00 2001 From: Lucas Schwiderski Date: Tue, 28 Nov 2023 13:08:44 +0100 Subject: [PATCH] Update Building the source code --- Building-the-source-code.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Building-the-source-code.md b/Building-the-source-code.md index 9778a6a..baee9f9 100644 --- a/Building-the-source-code.md +++ b/Building-the-source-code.md @@ -16,10 +16,8 @@ 1. Clone the repository. Make sure to initialize submodules (e.g. `git clone --recurse-submodules`). 2. Place the Oodle library files into `lib/oodle`. See the linked page above for how to acquire them. -3. Build the images with -```sh -# The Linux image also serves as a base for the Windows image -docker build -t dtmt-ci-base-linux -f .ci/image/Dockerfile.linux .ci/image -# Ignore this one, if you build for Linux -docker build -t dtmt-ci-base-msvc -f .ci/image/Dockerfile.msvc .ci/image -``` \ No newline at end of file +3. Build the Linux build image, which also serves as base for the Windows cross-platform build: `docker build -t dtmt-ci-base-linux -f .ci/image/Dockerfile.linux .ci/image` +4. (Optional) Build the Windows build image: `docker build -t dtmt-ci-base-msvc -f .ci/image/Dockerfile.msvc .ci/image` +5. Run the build command +5.1. Linux: `docker run --rm -ti --user $(id -u) -v ./:/src/dtmt dtmt-ci-base-linux cargo --color always build --profile release-lto --locked` +5.2. Windows: `docker run --rm -ti --user $(id -u) -v ./:/src/dtmt dtmt-ci-base-msvc cargo --color always build --release --target x86_64-pc-windows-msvc --locked -Zbuild-std` \ No newline at end of file