Skip to content

Commit 397648b

Browse files
author
gghjgj
authored
Merge pull request #46 from advancedwebdeveloper/advancedwebdeveloper-patch-46
fix Clang's versioning bugs
2 parents 68c5175 + 16364a4 commit 397648b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build-and-install.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ jobs:
6969
run: cd $GITHUB_WORKSPACE/gollvm_build_process && git clone -b llvm-for-gollvm https://github.com/plctlab/llvm-project.git && cd llvm-project/llvm/tools && git clone https://go.googlesource.com/gollvm && cd gollvm && git clone https://go.googlesource.com/gofrontend && cd libgo && git clone https://github.com/libffi/libffi.git && git clone https://github.com/ianlancetaylor/libbacktrace.git
7070
- name: Compiling & linking gollvm
7171
run: cd $GITHUB_WORKSPACE/gollvm_build_process && mkdir build_min && cd build_min && cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_C_COMPILER=clang-10 -DCMAKE_CXX_COMPILER=clang++-10 -G Ninja ../llvm-project/llvm && ninja -j16 gollvm && ninja GoBackendCoreTests && ./tools/gollvm/unittests/BackendCore/GoBackendCoreTests
72-
clang11_build_release: #in sense of CMake's identification - gollvm is indeed Clang oriented
72+
clang13_build_release: #in sense of CMake's identification - gollvm is indeed Clang oriented
7373
runs-on: ubuntu-20.04
7474
steps:
7575
- uses: actions/checkout@v2
76-
- name: Install Clang 11, using dpkg
77-
run: wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 11
78-
- name: Check if Clang 11 is on board
79-
run: which clang-11
76+
- name: Install Clang 13, using dpkg
77+
run: wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 13
78+
- name: Check if Clang 13 is on board
79+
run: which clang-13
8080
- name: Check our path
8181
run: pwd
8282
- name: Extracting llc's host target
@@ -93,11 +93,11 @@ jobs:
9393
run: cd $GITHUB_WORKSPACE/gollvm_build_process && git clone -b llvm-for-gollvm https://github.com/plctlab/llvm-project.git && cd llvm-project/llvm/tools && git clone https://go.googlesource.com/gollvm && cd gollvm && git clone https://go.googlesource.com/gofrontend && cd libgo && git clone https://github.com/libffi/libffi.git && git clone https://github.com/ianlancetaylor/libbacktrace.git
9494
- name: Compiling & linking gollvm
9595
run: cd $GITHUB_WORKSPACE/gollvm_build_process && mkdir build_release && cd build_release && cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_C_COMPILER=clang-11 -DCMAKE_CXX_COMPILER=clang++-11 -G Ninja ../llvm-project/llvm && ninja -j16 gollvm && ninja GoBackendCoreTests && ./tools/gollvm/unittests/BackendCore/GoBackendCoreTests
96-
clang13_build_minsizerel: #The build with a minimal footprint?
96+
clang12_build_minsizerel: #The build with a minimal footprint?
9797
runs-on: ubuntu-20.04
9898
steps:
9999
- uses: actions/checkout@v2
100-
- name: Install Clang 13, using dpkg
100+
- name: Install Clang 12, using dpkg
101101
run: wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && sudo ./llvm.sh 12
102102
#- name: Check if Clang 13 is on board
103103
# run: which clang-13

0 commit comments

Comments
 (0)