From f503a0b3faf5d324c62881d61e1ba1e0942becd9 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Wed, 21 Aug 2024 15:59:08 +0800 Subject: Dont require llvm for building generators (#4895) * Dont require llvm for building generators * Fetch slang-llvm.so from correct release (#4847) * Fetch slang-llvm.so from correct release Closes https://github.com/shader-slang/slang/issues/4648 Should close https://github.com/shader-slang/slang/issues/4812 * Update docs * Correct documentation on cmake option * Neaten cmake script * Fix fetching on windows --------- Co-authored-by: Yong He * Be a bit more careful dealing with release list fetching failure * clarify error messages --------- Co-authored-by: Yong He --- docs/building.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/building.md b/docs/building.md index 2b2435302..d86b80205 100644 --- a/docs/building.md +++ b/docs/building.md @@ -101,6 +101,10 @@ There are several options for getting llvm-support: - You can set `SLANG_SLANG_LLVM_BINARY_URL` to point to a local `libslang-llvm.so/slang-llvm.dll` or set it to a URL of an zip/archive containing such a file + - If this isn't set then the build system tries to download it from the + release on github matching the current tag. If such a tag doesn't exist + or doesn't have the correct os*arch combination then the latest release + will be tried. - Use a system supplied LLVM: `-DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM`, you must have llvm-13.0 and a matching libclang installed. It's important that either: -- cgit v1.2.3