File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 63
63
shacmd : ' sha512sum'
64
64
- os : macosx
65
65
runner : macos-13
66
- os-cmake-args : ' -DCMAKE_CXX_FLAGS="-static-libgcc -static-libstdc++ -flto" -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 ${POSIX_CMAKE_ARGS} ${MACOS_CMAKE_ARGS}'
66
+ 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 '
67
67
build-args : ' -j$(sysctl -n hw.ncpu)'
68
68
bindir : ' /build/bin'
69
69
dotexe : ' '
@@ -134,7 +134,15 @@ jobs:
134
134
- name : Patch cmake implicit link libraries on macOS
135
135
if : ${{ matrix.os == 'macosx' }}
136
136
shell : bash
137
- run : sed -i.backup 's/gcc_eh.\*|/gcc_eh.*|gcc_ext.*|/g' $(find /usr/local/Cellar -name CMakeParseImplicitLinkInfo.cmake)
137
+ run : |
138
+ BREW_PREFIX=$(brew --prefix)
139
+ FILES=$(find "$BREW_PREFIX" -name CMakeParseImplicitLinkInfo.cmake)
140
+
141
+ for file in $FILES; do
142
+ echo "Patching $file"
143
+ sed -i.backup 's/gcc_eh.*|/gcc_eh.*|gcc_ext.*|/g' "$file"
144
+ done
145
+
138
146
- name : Cmake
139
147
run : cmake -S ${{ matrix.release }}/llvm -B ${{ matrix.release }}/build ${{ env.COMMON_CMAKE_ARGS }} ${{ matrix.os-cmake-args }} ${{ matrix.extra-cmake-args }}
140
148
- name : Build
@@ -192,7 +200,7 @@ jobs:
192
200
- os : linux
193
201
runner : ubuntu-22.04
194
202
- os : macosx
195
- runner : macos-13
203
+ runner : macos-13 # Intel macOS runner
196
204
- os : windows
197
205
runner : windows-latest
198
206
runs-on : ${{ matrix.runner }}
@@ -275,6 +283,8 @@ jobs:
275
283
uses : svenstaro/upload-release-action@v2
276
284
with :
277
285
repo_token : ${{ secrets.GITHUB_TOKEN }}
286
+ tag : " master-${{ steps.get-sha.outputs.short_sha }}"
287
+ release_name : " master-${{ steps.get-sha.outputs.short_sha }}"
278
288
draft : true
279
289
file_glob : true
280
- file : clang-*/**/*
290
+ file : clang-*/**/*
You can’t perform that action at this time.
0 commit comments