Skip to content

Commit

Permalink
[GR-32560] IOS simulator target.
Browse files Browse the repository at this point in the history
PullRequest: graal/9329
  • Loading branch information
vjovanov committed Jul 20, 2021
2 parents 64bff77 + 447b5ed commit a5ace85
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 2 deletions.
8 changes: 8 additions & 0 deletions sdk/src/org.graalvm.nativeimage/snapshot.sigtest
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ innr public final static DARWIN_AARCH64
innr public final static DARWIN_AMD64
innr public final static HOSTED_ONLY
innr public final static IOS_AARCH64
innr public final static IOS_AMD64
innr public final static LINUX_AARCH64
innr public final static WINDOWS_AMD64
innr public static LINUX_AMD64
Expand Down Expand Up @@ -284,6 +285,13 @@ intf org.graalvm.nativeimage.Platform$AARCH64
intf org.graalvm.nativeimage.Platform$IOS
supr java.lang.Object

CLSS public final static org.graalvm.nativeimage.Platform$IOS_AMD64
outer org.graalvm.nativeimage.Platform
cons public init()
intf org.graalvm.nativeimage.Platform$AMD64
intf org.graalvm.nativeimage.Platform$IOS
supr java.lang.Object

CLSS public abstract interface static org.graalvm.nativeimage.Platform$LINUX
outer org.graalvm.nativeimage.Platform
intf org.graalvm.nativeimage.impl.InternalPlatform$PLATFORM_JNI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ org.graalvm.nativeimage.Platform$LINUX_AARCH64
org.graalvm.nativeimage.Platform$ANDROID_AARCH64
org.graalvm.nativeimage.Platform$DARWIN_AMD64
org.graalvm.nativeimage.Platform$DARWIN_AARCH64
org.graalvm.nativeimage.Platform$IOS_AMD64
org.graalvm.nativeimage.Platform$IOS_AARCH64
org.graalvm.nativeimage.Platform$WINDOWS_AMD64
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The Universal Permissive License (UPL), Version 1.0
Expand Down Expand Up @@ -336,6 +336,22 @@ public IOS_AARCH64() {
}
}

/**
* Supported leaf platform: iOS on x86 64-bit.
*
* @since 21.3
*/
final class IOS_AMD64 implements IOS, AMD64 {

/**
* Instantiates a marker instance of this platform.
*
* @since 21.3
*/
public IOS_AMD64() {
}
}

/**
* Supported leaf platform: Windows on x86 64-bit.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,12 @@ public int getFramePointerDwarfRegNum() {

@Override
public List<String> getLLCAdditionalOptions() {
return Collections.singletonList("-no-x86-call-frame-opt");
List<String> list = new ArrayList<>();
list.add("-no-x86-call-frame-opt");
if (Platform.includedIn(Platform.IOS.class)) {
list.add("-mtriple=x86_64-ios");
}
return list;
}
});
}
Expand Down

0 comments on commit a5ace85

Please sign in to comment.