Skip to content
Merged
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
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
shacmd: 'sha512sum'
- os: macosx
runner: macos-13
os-cmake-args: '-DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -flto" -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 ${POSIX_CMAKE_ARGS} ${MACOS_CMAKE_ARGS}'
os-cmake-args: '-DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -flto -ffunction-sections -fdata-sections" -DCMAKE_EXE_LINKER_FLAGS="-Wl,-dead_strip" -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 ${POSIX_CMAKE_ARGS} ${MACOS_CMAKE_ARGS} -DLLVM_TARGETS_TO_BUILD=X86'
build-args: '-j$(sysctl -n hw.ncpu)'
bindir: '/build/bin'
dotexe: ''
Expand Down Expand Up @@ -134,7 +134,15 @@ jobs:
- name: Patch cmake implicit link libraries on macOS
if: ${{ matrix.os == 'macosx' }}
shell: bash
run: sed -i.backup 's/gcc_eh.\*|/gcc_eh.*|gcc_ext.*|/g' $(find /usr/local/Cellar -name CMakeParseImplicitLinkInfo.cmake)
run: |
BREW_PREFIX=$(brew --prefix)
FILES=$(find "$BREW_PREFIX" -name CMakeParseImplicitLinkInfo.cmake)

for file in $FILES; do
echo "Patching $file"
sed -i.backup 's/gcc_eh.*|/gcc_eh.*|gcc_ext.*|/g' "$file"
done

- name: Cmake
run: cmake -S ${{ matrix.release }}/llvm -B ${{ matrix.release }}/build ${{ env.COMMON_CMAKE_ARGS }} ${{ matrix.os-cmake-args }} ${{ matrix.extra-cmake-args }}
- name: Build
Expand Down Expand Up @@ -192,7 +200,7 @@ jobs:
- os: linux
runner: ubuntu-22.04
- os: macosx
runner: macos-13
runner: macos-13 # Intel macOS runner
- os: windows
runner: windows-latest
runs-on: ${{ matrix.runner }}
Expand Down Expand Up @@ -275,6 +283,8 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "master-${{ steps.get-sha.outputs.short_sha }}"
release_name: "master-${{ steps.get-sha.outputs.short_sha }}"
draft: true
file_glob: true
file: clang-*/**/*
file: clang-*/**/*