Skip to content

Fix/compiler extension export #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
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
36 changes: 36 additions & 0 deletions .github/workflows/llvm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on: [push]

jobs:
build_llvm:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macOS-latest
steps:
- name: Setup Windows
if: startsWith(matrix.os, 'windows')
uses: tstellar/actions/setup-windows@master
with:
arch: amd64
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install Ninja
uses: tstellar/actions/install-ninja@master
with:
os: ${{ runner.os }}
- name: Test LLVM / dynamic
if: startsWith(matrix.os, 'windows') == false
uses: tstellar/actions/build-test-llvm-project@master
with:
cmake_args: -G Ninja -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_args }} -DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;compiler-rt;libcxx' -DLLVM_ENABLE_ASSERTIONS=ON '-DLLVM_BUILD_EXAMPLES=On' '-DCMAKE_MACOSX_RPATH=On' '-DLLVM_BUILD_EXTERNAL_COMPILER_RT=On' '-DLIBCXX_ENABLE_SHARED=OFF' '-DLIBCXX_ENABLE_STATIC=OFF' '-DLIBCXX_INCLUDE_TESTS=OFF' '-DLLVM_ENABLE_ASSERTIONS=On'
os: ${{ runner.os }}
- name: Test LLVM / static
uses: tstellar/actions/build-test-llvm-project@master
with:
cmake_args: -G Ninja -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_args }} -DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;compiler-rt;libcxx' -DLLVM_ENABLE_ASSERTIONS=ON '-DLLVM_BUILD_EXAMPLES=On' '-DCMAKE_MACOSX_RPATH=On' '-DLLVM_BUILD_EXTERNAL_COMPILER_RT=On' '-DLIBCXX_ENABLE_SHARED=OFF' '-DLIBCXX_ENABLE_STATIC=OFF' '-DLIBCXX_INCLUDE_TESTS=OFF' '-DLLVM_ENABLE_ASSERTIONS=On'
os: ${{ runner.os }}
6 changes: 6 additions & 0 deletions llvm/examples/Bye/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ add_llvm_pass_plugin(Bye
Bye.cpp
DEPENDS
intrinsics_gen
BUILDTREE_ONLY
)

if (LLVM_LINK_LLVM_DYLIB)
target_link_libraries(Bye PUBLIC LLVM)
else()
Expand All @@ -15,3 +17,7 @@ else()
)
endif()

if( LLVM_BUILD_EXAMPLES )
install(TARGETS ${name} RUNTIME DESTINATION examples)
endif()
set_target_properties(${name} PROPERTIES FOLDER "Examples")