Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/vcpkg_ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ jobs:
llvm: [
'llvm-9',
'llvm-10',
'llvm-11'
'llvm-11',
'llvm-12'
]

runs-on: ${{ matrix.host.name }}
Expand Down Expand Up @@ -147,10 +148,10 @@ jobs:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.ARTIFACT_NAME }}

# Only for LLVM-10 right now...
# Only for LLVM-11 right now...
- name: 'Build Packaged Lifting Tools'
if: ${{ matrix.llvm == 'llvm-10' }}
shell: 'bash'
if: ${{ matrix.llvm == 'llvm-11' }}
# NOTE: Cannot use --clean-after-build because of path issue finding semantics files in remill
run: |
export VCPKG_DISABLE_METRICS=1
Expand All @@ -162,7 +163,7 @@ jobs:
--triplet "${{ matrix.host.triplet }}" \
--debug \
@overlays.txt \
remill
remill[core,${{ matrix.llvm }}]

- name: Prepare ccache
id: ccache_prep
Expand Down Expand Up @@ -190,6 +191,7 @@ jobs:

- name: 'Test rellic build'
shell: 'bash'
if: ${{ matrix.llvm != 'llvm-12' }}
run: |
cd rellic
rm -rf build
Expand Down Expand Up @@ -219,9 +221,9 @@ jobs:
cmake --build . --target test_dependencies
env CTEST_OUTPUT_ON_FAILURE=1 cmake --build . --target test || true

# Only for LLVM-10 right now...
# Only for LLVM-11 right now...
- name: 'Anvill build - vcpkg remill'
if: ${{ matrix.llvm == 'llvm-10' }}
if: ${{ matrix.llvm == 'llvm-11' }}
shell: 'bash'
run: |
cd anvill
Expand All @@ -239,6 +241,7 @@ jobs:

- name: 'Anvill build - custom remill'
shell: 'bash'
if: ${{ matrix.llvm == 'llvm-11' }}
run: |
cd anvill
rm -rf build
Expand All @@ -255,6 +258,7 @@ jobs:

- name: 'Test mcsema build'
shell: 'bash'
if: ${{ matrix.llvm == 'llvm-11' }}
run: |
cd mcsema
rm -rf build
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/vcpkg_ci_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jobs:
os:
- { runner: 'macos-10.15', xcode: '12.4' }
llvm: [
'llvm-11'
'llvm-11',
'llvm-12'
]

runs-on: ${{ matrix.os.runner }}
Expand Down Expand Up @@ -120,8 +121,10 @@ jobs:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.ARTIFACT_NAME }}

# Only for LLVM-11 right now...
- name: 'Build Packaged Lifting Tools'
shell: 'bash'
if: ${{ matrix.llvm == 'llvm-11' }}
# NOTE: Cannot use --clean-after-build because of path issue finding semantics files
run: |
${VCPKG_ROOT}/vcpkg install \
Expand Down Expand Up @@ -161,6 +164,7 @@ jobs:

- name: 'Test rellic build'
shell: 'bash'
if: ${{ matrix.llvm != 'llvm-12' }}
run: |
cd rellic
mkdir -p build && cd build
Expand Down Expand Up @@ -190,6 +194,7 @@ jobs:

- name: 'Anvill build - vcpkg remill'
shell: 'bash'
if: ${{ matrix.llvm == 'llvm-11' }}
run: |
cd anvill
mkdir -p build-vcpkg && cd build-vcpkg
Expand All @@ -205,6 +210,7 @@ jobs:

- name: 'Anvill build - custom remill'
shell: 'bash'
if: ${{ matrix.llvm == 'llvm-11' }}
run: |
cd anvill
mkdir -p build && cd build
Expand All @@ -220,6 +226,7 @@ jobs:

- name: 'Test mcsema build'
shell: 'bash'
if: ${{ matrix.llvm == 'llvm-11' }}
run: |
cd mcsema
mkdir -p build && cd build
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/vcpkg_ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
llvm: [
# 'llvm-9',
# 'llvm-10',
'llvm-11'
'llvm-11',
'llvm-12'
]

runs-on: ['self-hosted', 'Windows', 'X64']
Expand Down Expand Up @@ -147,6 +148,7 @@ jobs:
# remill

- name: 'Test rellic build'
if: ${{ matrix.llvm != 'llvm-12' }}
run: |
cd rellic
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue .\build
Expand Down Expand Up @@ -208,6 +210,7 @@ jobs:
# # & ( Get-ChildItem install\bin | Where-Object {$_.name -match "anvill-decompile-json-.*.exe"} ) -spec ..\tools\decompile-json\tests\specs\ret0.json -bc_out ret0.bc -ir_out ret0.ir

- name: 'Anvill build - custom remill'
if: ${{ matrix.llvm == 'llvm-11' }}
run: |
cd anvill
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue .\build
Expand All @@ -226,6 +229,7 @@ jobs:
& ( Get-ChildItem install\bin | Where-Object {$_.name -match "anvill-decompile-json-.*.exe"} ) -spec ..\tools\decompile-json\tests\specs\ret0.json -bc_out ret0.bc -ir_out ret0.ir

- name: 'Test mcsema build'
if: ${{ matrix.llvm == 'llvm-11' }}
run: |
cd mcsema
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue .\build
Expand Down
4 changes: 2 additions & 2 deletions ports/llvm-10/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ Description: Build LLDB debugger.

Feature: openmp
Description: Build LLVM OpenMP libraries.
Build-Depends: llvm[core,utils]
Build-Depends: llvm-10[core,utils]

Feature: polly
Description: Build polyhedral optimizations for LLVM.
Build-Depends: llvm[core,utils]
Build-Depends: llvm-10[core,utils]

Feature: enable-z3
Description: Compile with Z3 SMT solver support for Clang static analyzer.
Expand Down
6 changes: 3 additions & 3 deletions ports/llvm-11/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Description: Build compiler's runtime libraries.

Feature: flang
Description: Build Fortran front end.
Build-Depends: llvm[core,mlir]
Build-Depends: llvm-11[core,mlir]

Feature: lld
Description: Build LLVM linker.
Expand All @@ -120,11 +120,11 @@ Description: Build Multi-Level IR Compiler Framework.

Feature: openmp
Description: Build LLVM OpenMP libraries.
Build-Depends: llvm[core,utils]
Build-Depends: llvm-11[core,utils]

Feature: polly
Description: Build polyhedral optimizations for LLVM.
Build-Depends: llvm[core,utils]
Build-Depends: llvm-11[core,utils]

Feature: enable-z3
Description: Compile with Z3 SMT solver support for Clang static analyzer.
Expand Down
8 changes: 4 additions & 4 deletions ports/llvm-12/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Source: llvm-12
Version: 12.0.0-rc2
Version: 12.0.0
Homepage: https://llvm.org/
Description: The LLVM Compiler Infrastructure
Supports: !uwp
Expand Down Expand Up @@ -107,7 +107,7 @@ Description: Build compiler's runtime libraries.

Feature: flang
Description: Build Fortran front end.
Build-Depends: llvm[core,mlir]
Build-Depends: llvm-12[core,mlir]

Feature: lld
Description: Build LLVM linker.
Expand All @@ -120,11 +120,11 @@ Description: Build Multi-Level IR Compiler Framework.

Feature: openmp
Description: Build LLVM OpenMP libraries.
Build-Depends: llvm[core,utils]
Build-Depends: llvm-12[core,utils]

Feature: polly
Description: Build polyhedral optimizations for LLVM.
Build-Depends: llvm[core,utils]
Build-Depends: llvm-12[core,utils]

Feature: enable-z3
Description: Compile with Z3 SMT solver support for Clang static analyzer.
Expand Down
4 changes: 2 additions & 2 deletions ports/llvm-12/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
set(LLVM_VERSION "12.0.0-rc2")
set(LLVM_VERSION "12.0.0")

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO llvm/llvm-project
REF llvmorg-${LLVM_VERSION}
SHA512 d8f9b3dfeb0fe9b91eb7f49da393784333044db2653373fbb168afd3c8d50f3e3ec7a7b8f44df522d0facafbfe4cfc4d9e2906d19f1e6feb0bdc569b6c10a17d
SHA512 0cff02155c5ac0d6db2b72d60d9819d5b5dd859663b45f721b1c7540239c2fceb1f57d9173f6870c49de851c242ed8e85c5c6d6577a1f8092a7c5dcd12513b26
HEAD_REF main
PATCHES
0001-fix-install-paths.patch
Expand Down
4 changes: 2 additions & 2 deletions ports/llvm-9/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ Description: Build LLDB debugger.

Feature: openmp
Description: Build LLVM OpenMP libraries.
Build-Depends: llvm[core,utils]
Build-Depends: llvm-9[core,utils]

Feature: polly
Description: Build polyhedral optimizations for LLVM.
Build-Depends: llvm[core,utils]
Build-Depends: llvm-9[core,utils]

Feature: enable-z3
Description: Compile with Z3 SMT solver support for Clang static analyzer.
Expand Down