From 5650b212f22bbadd4f1b9e4fedaa818dc86ad35a Mon Sep 17 00:00:00 2001 From: jaxl Date: Fri, 7 Aug 2020 12:27:30 +0800 Subject: [PATCH] Update README.md: Use ninja --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 39c9c81..68d891e 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,8 @@ Please make each contribution reasonably small. If you would like to make a big It is recommended to install 16GB RAM in your build system. ### Build System -CMake 3.13.4 or newer is required. [Download](https://cmake.org/download/) and install proper one if the cmake is older than 3.13.4. +* CMake 3.13.4 or newer is required. [Download](https://cmake.org/download/) and install proper one if the cmake is older than 3.13.4. +* Ninja is requred. ### Install Dev and Tools Packages #### Ubuntu @@ -143,18 +144,17 @@ repo sync ``` cd /drivers/xgl -cmake -H. -Bbuilds/Release64 +cmake -H. -G Ninja -Bbuilds/Release64 cd builds/Release64 -make -j$(nproc) +ninja ``` > **Note:** * For RedHat 7.x, please use cmake3(>= 3.13.4) instead of cmake. -* For debug build, use `-DCMAKE_BUILD_TYPE=Debug`. +* For debug build, use `-DCMAKE_BUILD_TYPE=Debug -DLLVM_PARALLEL_LINK_JOBS=2` (Linking a debug build of llvm is very memory intensive, so we use only two parallel jobs). * For 32-bit build, use `-DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32`. * To enable Wayland support, use `-DBUILD_WAYLAND_SUPPORT=ON`. -* If the build runs into errors like "collect2: fatal error: ld terminated with signal 9 [Killed]" due to out of memory, you could try with reducing the number of threads in "make" command. ## Installation Instructions ### Install Vulkan SDK