From e44500dcf202bf0397f38ae823b7a2c932123263 Mon Sep 17 00:00:00 2001 From: Hat Kid <6624576+Hat-Kid@users.noreply.github.com> Date: Wed, 22 Jun 2022 00:29:23 +0200 Subject: [PATCH] readme: add fedora build instructions (#1508) --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 1d9788fc59..259f103ae0 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,28 @@ Run tests: ./test.sh ``` +### Fedora + +Install packages and init repository: + +```sh +sudo dnf install cmake lld clang nasm libX11-devel libXrandr-devel libXinerama-devel libXcursor-devel libXi-devel pulseaudio-libs-devel +sudo sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin +``` + +Compile with `clang`: + +```sh +cmake -DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=lld" -DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=lld" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -B build +cmake --build build -j$(nproc) +``` + +Run tests: + +```sh +./test.sh +``` + ## Getting Started - Windows ### Required Software