Skip to content
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

Update workflow to macos13. #11

Open
wants to merge 4 commits into
base: release/13.x
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
fail-fast: false
matrix:
platform:
- name: macos-12-release
- name: macos-13-release
os_type: macos
os_name: macos-12
os_name: macos-13
build_type: Release
- name: macos-12-debug
- name: macos-13-debug
os_type: macos
os_name: macos-12
os_name: macos-13
build_type: Debug
- name: macos-latest-release
os_type: macos
Expand Down Expand Up @@ -202,10 +202,10 @@ jobs:
os_name_without_build_type="${os_name%%-*}"
echo "artifacts_name=llvm-13.x-${os_name_without_build_type}-${host_architecture}-${{ matrix.platform.build_type }}" >> "${GITHUB_ENV}"
fi
echo "artifacts_path=../install-llvm" >> "${GITHUB_ENV}"
echo "artifacts_path=${RUNNER_WORKSPACE}/install-llvm" >> "${GITHUB_ENV}"

- name: Upload LLVM binaries
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: ${{env.artifacts_name}}
path: ${{env.artifacts_path}}
1 change: 1 addition & 0 deletions llvm/include/llvm/Support/Signals.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#define LLVM_SUPPORT_SIGNALS_H

#include <string>
#include <cstdint>

namespace llvm {
class StringRef;
Expand Down
5 changes: 4 additions & 1 deletion llvm/lib/Support/Unix/Signals.inc
Original file line number Diff line number Diff line change
Expand Up @@ -331,14 +331,17 @@ static void RegisterHandlers() { // Not signal-safe.
registerHandler(S, SignalKind::IsInfo);
}

void sys::unregisterHandlers() {

namespace llvm::sys {
void unregisterHandlers() {
// Restore all of the signal handlers to how they were before we showed up.
for (unsigned i = 0, e = NumRegisteredSignals.load(); i != e; ++i) {
sigaction(RegisteredSignalInfo[i].SigNo,
&RegisteredSignalInfo[i].SA, nullptr);
--NumRegisteredSignals;
}
}
}

/// Process the FilesToRemove list.
static void RemoveFilesToRemove() {
Expand Down
Loading