Don't use #_sourceLocation in the fallback event handler.#1609
Don't use #_sourceLocation in the fallback event handler.#1609
#_sourceLocation in the fallback event handler.#1609Conversation
We can't use our own macros in the Testing target because they aren't available when we build the toolchain. Update the expansion of `#_sourceLocation` to detect it's being used in one of our own library targets and emit an error. Resolves rdar://169296255.
harlanhaskins
left a comment
There was a problem hiding this comment.
Clever use of compiler conditions to prevent this bug in the future, nice
|
(For tracking purposes) Fallout from #1523 |
|
I just ran into this build error when trying to build latest trunk locally on macOS, thought maybe I did something wrong. 😄 May help to set up some kind of nightly snapshot CI using |
I'd have to defer to our CI wranglers on that topic. |
We can't use our own macros in the Testing target because they aren't available when we build the toolchain.
Update the expansion of
#_sourceLocationto detect it's being used in one of our own library targets and emit an error.Resolves rdar://171774246.
Checklist: