-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
[Feature Request] Enable preload mode on macOS with SIP disabled #558
Comments
Yes, the previous version of Bear was doing this. The SIP enabled just become so dominant that had to come up with the compiler wrappers. But it's feasible to enable it again. |
Notes after some investigation (currently too busy to work on it):
This gist can check SIP status programatically, and the above configuration corresponds to |
Describe the bug
Currently
bear
silently enforces wrapper mode on macOS. This behavior causes cross compilers (eg mingw) fail to be recognized.However, if SIP is disabled, we can actually use
DYLD_INSERT_LIBRARIES
without any problem. Here is a minimal example:Expected behavior
On macOS, dynamically check for SIP status at runtime, to determine whether we can use preload mode.
Additionally, a warning log when wrapper mode is being enforced would be helpful
Environment:
The text was updated successfully, but these errors were encountered: