-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build local llvm in new docker to support spirv-tools
- Loading branch information
Showing
5 changed files
with
54 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM renderdoc-build | ||
LABEL maintainer baldurk@baldurk.org | ||
COPY prepare.sh / | ||
RUN /prepare.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This folder creates a docker container pre-configured for compiling RenderDoc's SPIR-V plugins with the oldest possible distribution, for maximum compatibility of the binary build. | ||
|
||
It doesn't contain anything RenderDoc-specific, apart from being tailored to its dependencies. It depends on renderdoc-build from the normal build scripts. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
set -e | ||
set -x | ||
|
||
# Get new cmake for glslang and spirv-tools | ||
|
||
wget https://github.com/Kitware/CMake/releases/download/v3.26.2/cmake-3.26.2-linux-x86_64.tar.gz | ||
tar -zxvf cmake-3.26.2-linux-x86_64.tar.gz | ||
|
||
export PATH=$(pwd)/cmake-3.26.2-linux-x86_64/bin:$PATH | ||
|
||
# Update to newer clang and libc++ for spirv-tools... | ||
|
||
wget https://github.com/llvm/llvm-project/archive/refs/heads/release/6.x.tar.gz | ||
tar -zxf 6.x.tar.gz | ||
|
||
cd llvm-project-release-6.x/ | ||
cd llvm/projects/ | ||
ln -s ../../libcxx | ||
ln -s ../../libcxxabi | ||
cd ../../ | ||
|
||
mkdir build | ||
cd build | ||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../llvm/ | ||
make install-cxx -j8 | ||
make install-cxxabi -j8 | ||
make install -j8 | ||
cd .. | ||
|
||
mkdir clang-build | ||
cd clang-build | ||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DLLVM_CONFIG_PATH=/usr/bin/llvm-config ../clang | ||
make install -j8 |