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

[ios/tvos] ARM64 simulator JIT Hack and CMAKE_SYSTEM_VARIANT iOSSimulator #52764

Closed

Commits on May 14, 2021

  1. Bring back arm64 JITing hack for ios simulator

    On iossimulator-arm64 and tvossimulator-arm64, use the
    pthread_jit_write_protect_np function to toggle the W^X bit for the current
    thread.
    
    Unfortunately, the above function is marked as __API_UNAVAILABLE on ios, tvos,
    watchos in the apple headers.  But in the simulator frameworks it is still
    present and usable.  So we declare our own prototype of the function and avoid
    the clang error.
    
    ---
    
    This reverts commit 89a816f, but for IOS
    simulator, not for Catalyst.
    
    That commit in turn reverted a9f1207
    
    (ie this current commit is the same as a9f1207 but for ios simulator instead of catalyst)
    lambdageek committed May 14, 2021
    Configuration menu
    Copy the full SHA
    f62b936 View commit details
    Browse the repository at this point in the history
  2. [build] define CMAKE_SYSTEM_VARIANT for iOSSimulator and tvOSSimulator

    For Mono, set HOST_DARWIN_SIMULATOR in cmake and C
    lambdageek committed May 14, 2021
    Configuration menu
    Copy the full SHA
    8b2f750 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9dbb360 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b2153bf View commit details
    Browse the repository at this point in the history

Commits on May 17, 2021

  1. fix indentation

    lambdageek committed May 17, 2021
    Configuration menu
    Copy the full SHA
    cabbf8a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    79c040d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    75d6248 View commit details
    Browse the repository at this point in the history
  4. fix build: clang doesn't like __builtin_available in a macro

    apparently it wants to see literally `if (__builtin_available(...))`
    lambdageek committed May 17, 2021
    Configuration menu
    Copy the full SHA
    8106756 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2021

  1. fix disable_write, too

    lambdageek committed May 18, 2021
    Configuration menu
    Copy the full SHA
    7ed14e1 View commit details
    Browse the repository at this point in the history