Skip to content

Commit acc9ec5

Browse files
bors[bot]vext01ptersilie
authored
37: Upgrade to LLVM main and add back our changes. r=ltratt a=ptersilie Co-authored-by: Edd Barrett <[email protected]> Co-authored-by: Lukas Diekmann <[email protected]> Co-authored-by: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
2 parents e5e0e79 + f2d66b8 commit acc9ec5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1063
-964
lines changed

.buildbot.sh

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
INST_DIR=`pwd`/inst
6+
7+
mkdir -p build
8+
cd build
9+
cmake -DCMAKE_INSTALL_PREFIX=${INST_DIR} \
10+
-DLLVM_INSTALL_UTILS=On \
11+
-DCMAKE_BUILD_TYPE=release \
12+
-DLLVM_ENABLE_ASSERTIONS=On \
13+
-DLLVM_ENABLE_PROJECTS="lld;clang" \
14+
../llvm
15+
make -j `nproc` install
16+
17+
# clang-format any new files that we've introduced ourselves.
18+
cd ..
19+
PATH=${INST_DIR}/bin:${PATH}
20+
git fetch origin main:refs/remotes/origin/main
21+
sh yk_format_new_files.sh
22+
git diff --exit-code
23+
24+
# There are many test suites for LLVM:
25+
# https://llvm.org/docs/TestingGuide.html
26+
#
27+
# This runs unit and integration tests.
28+
cd build
29+
make -j `nproc` check-all
30+
cd ..
31+
32+
# FIXME The commented code below should run the `test-suite` tests, as
33+
# described at https://llvm.org/docs/TestSuiteGuide.html.
34+
#
35+
# However, the suite fails (even on a stock LLVM) with this error:
36+
# retref-bench.cc:17:10: fatal error: 'xray/xray_interface.h' file not found
37+
# #include "xray/xray_interface.h"
38+
# ^~~~~~~~~~~~~~~~~~~~~~~
39+
#
40+
#git clone --depth 1 --branch llvmorg-12.0.0 https://github.com/llvm/llvm-test-suite.git test-suite
41+
#mkdir -p test-suite-build
42+
#cd test-suite-build
43+
#cmake -DCMAKE_C_COMPILER=${INST_DIR}/bin/clang \
44+
# -C../test-suite/cmake/caches/O3.cmake \
45+
# ../test-suite
46+
#make -j `nproc`
47+
#llvm-lit -v -j 1 -o results.json .

.buildbot_dockerfile_debian

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM debian:bullseye
2+
ARG CI_UID
3+
RUN useradd -m -u ${CI_UID} ci
4+
RUN apt-get update && \
5+
apt-get -y install build-essential curl cmake python3-distutils git
6+
WORKDIR /ci
7+
RUN chown ${CI_UID}:${CI_UID} .
8+
COPY --chown=${CI_UID}:${CI_UID} . .
9+
CMD sh -x .buildbot.sh

.editorconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
root = true
2+
3+
[*.{cpp,cc,c,h}]
4+
indent_style = space
5+
indent_size = 2

.github/workflows/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/clang-tests.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/closed-issues.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/issue-release-workflow.yml

Lines changed: 0 additions & 90 deletions
This file was deleted.

.github/workflows/issue-subscriber.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)