--- Comment #2 from Rich Siegel <siegel@???> ---
Calling an unavailable API is never a NOP. You'll get a runtime error from dyld
which ends up calling abort() on any OS which doesn't implement it. It looks
dyld: Symbol not found: _pthread_jit_write_protect_np
Referenced from: /path/to/app/executable
Expected in: /usr/lib/libSystem.B.dylib
If compiler compatibility is more than a theoretical issue, it should be
possible to further conditionalize the call as needed:
// do the work
If you're not compiling with a version of Xcode which includes a version of
clang which supports __builtin_availble(), it's a given that you can't call
pthread_jit_write_protect_np() because it won't exist in the SDK.
You are receiving this mail because:
You are on the CC list for the bug.
This message was posted to the following mailing lists: