Skip to content
This repository was archived by the owner on Jun 11, 2026. It is now read-only.
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
10 changes: 6 additions & 4 deletions .github/workflows/xcodebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,21 @@ jobs:
- run: xcodebuild -version
- name: macOS with UTF16
if: always()
run: YAMS_DEFAULT_ENCODING=UTF16 xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.flags_for_test }} test | xcpretty
run: YAMS_DEFAULT_ENCODING=UTF16 xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.flags_for_test }} -destination "platform=macOS,arch=$(uname -m)" test | xcpretty
shell: bash
- name: macOS with UTF8
if: always()
run: YAMS_DEFAULT_ENCODING=UTF8 xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.flags_for_test }} test | xcpretty
run: YAMS_DEFAULT_ENCODING=UTF8 xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.flags_for_test }} -destination "platform=macOS,arch=$(uname -m)" test | xcpretty
shell: bash
- name: iPhone Simulator
if: always()
run: xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.flags_for_test }} test -sdk iphonesimulator -destination "name=iPhone 15" | xcpretty
run: |
destination_id="$(xcrun simctl list devices available -j | jq -er '[.devices[] | .[] | select(.name | startswith("iPhone"))][0].udid')"
xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.flags_for_test }} test -sdk iphonesimulator -destination "platform=iOS Simulator,id=$destination_id" | xcpretty
shell: bash
- name: Apple TV Simulator
if: always()
run: xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.flags_for_test }} test -sdk appletvsimulator -destination "name=Apple TV 4K" | xcpretty
run: xcodebuild ${{ matrix.xcode_flags }} ${{ matrix.flags_for_test }} test -sdk appletvsimulator -destination "platform=tvOS Simulator,name=Apple TV" | xcpretty
shell: bash
- name: watchOS Simulator
if: always()
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

##### Bug Fixes

* None.
* Preserve trampoline argument registers in code-coverage builds.

## 0.01

Expand All @@ -25,4 +25,4 @@

##### Bug Fixes

* None.
* None.
12 changes: 9 additions & 3 deletions Sources/SuperBuilder/src/ITKSuperBuilder.m
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,15 @@ static BOOL ITKMethodIsSuperTrampoline(Method method) {
https://azeria-labs.com/functions-and-the-stack-part-7/
*/

#if __has_attribute(no_profile_instrument_function)
#define ITK_NAKED_TRAMPOLINE __attribute__((__naked__, no_profile_instrument_function))
#else
#define ITK_NAKED_TRAMPOLINE __attribute__((__naked__))
#endif

#if defined(__arm64__)

__attribute__((__naked__))
ITK_NAKED_TRAMPOLINE
void msgSendSuperTrampoline(void) {
asm volatile (

Expand Down Expand Up @@ -224,7 +230,7 @@ void msgSendSuperStretTrampoline(void) {}

#elif defined(__x86_64__)

__attribute__((__naked__))
ITK_NAKED_TRAMPOLINE
void msgSendSuperTrampoline(void) {
asm volatile (
// push frame pointer
Expand Down Expand Up @@ -292,7 +298,7 @@ asm volatile (
}


__attribute__((__naked__))
ITK_NAKED_TRAMPOLINE
void msgSendSuperStretTrampoline(void) {
asm volatile (
// push frame pointer
Expand Down
Loading