Skip to content

Commit

Permalink
Merge branch 'issue-8-mv-llvm-cmake-patches' of github.com:ParaToolsI…
Browse files Browse the repository at this point in the history
…nc/salt-dev
  • Loading branch information
zbeekman committed Jan 17, 2023
2 parents faa005d + c120a1b commit 68ab14c
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 23 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ Dockerfile
/.github/
*.md
LICENSE
/patches/README.md
/patches/LICENSE
/patches/.git/

4 changes: 4 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: ci
# See https://docs.docker.com/build/ci/github-actions/examples
env:
DOCKER_BUILDKIT: 1

on:
schedule:
Expand Down Expand Up @@ -38,6 +40,8 @@ jobs:
-
name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
-
name: Login to Docker Hub
if: github.event_name != 'pull_request'
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "patches"]
path = patches
url = https://github.com/ParaToolsInc/salt-llvm-patches.git
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ RUN --mount=type=cache,target=/ccache/ <<EOC
-DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" \
-DLLVM_TARGETS_TO_BUILD=X86 \
-S /llvm-project/llvm -B /llvm-project/llvm/build

# Build libraries, headers, and binaries
Expand Down Expand Up @@ -175,3 +174,4 @@ RUN --mount=type=cache,target=/home/salt/ccache <<EOC
EOC

ENV PATH="${PATH}:/usr/local/x86_64/bin"
RUN alias ls="ls --color=auto"
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Container definitions for [SALT] development.

This repository defines and deploys the containers used for [SALT] continuous integration (CI) and local development.

LLVM/Clang patches needed by [SALT] for minimal LLVM/Clang builds are shared between this repository
and [SALT] using a [git submodule].
The patches are stored here: https://github.com/ParaToolsInc/salt-llvm-patches

## Building the development container for local use

First, BuildKit, caching and intelligent layer creation and ordering have been employed
Expand Down Expand Up @@ -82,3 +86,4 @@ Very useful examples are available [here](https://docs.docker.com/build/ci/githu


[SALT]: https://github.com/ParaToolsInc/salt
[git submodule]: https://git-scm.com/book/en/v2/Git-Tools-Submodules
1 change: 1 addition & 0 deletions patches
Submodule patches added at a82afb
11 changes: 0 additions & 11 deletions patches/ClangTargets.cmake.patch

This file was deleted.

11 changes: 0 additions & 11 deletions patches/LLVMExports.cmake.patch

This file was deleted.

0 comments on commit 68ab14c

Please sign in to comment.