News for hackers. Stuff that matters.
Re: by krackers on Wednesday November 08, 2023 @07:38PM (#38199343)
If you're on mac (where I assume the two are already available), what compiler flags need to be passed in to do this?
Re: by torarnv on Wednesday November 08, 2023 @11:43PM (#38201272)
$ clang++ foo.cpp -o foo -framework Foundation

-lswift_Backtracing also works, but dunno if that's "public API"

$ codesign --force --sign - --entitlements entitlements.plist foo

https://github.com/apple/swift/blob/main/docs/Backtracing.rs...

$ SWIFT_BACKTRACE="enable=yes" ./foo

Very cool!