Add support for native TLS on OS X#1523
Conversation
2071e3e to
8ea03ca
Compare
8ea03ca to
dfb306f
Compare
|
Conflict! Please rebase the dmd one too. |
dfb306f to
74502c7
Compare
|
Rebased. |
|
@smolt will this work for ARM as well? |
|
😃 thanks. |
|
@jacob-carlborg if you mean could it work on ARM by adding version flags for CPU, probably yes as long as built with modified LLVM with TLS support for iOS (https://github.com/smolt/iphoneos-apple-support). When this merges into LDC, we'll have to decide if should switch over to this upstream module instead of ldc specific module. |
|
@smolt Since you added version identifiers for the non OS X platforms I was wondering if it was correct with the |
|
Ah that. Yes, that is correct. Dmd can build for the iOS, tvOS, and watchOS simulators as they are x86 and x86_64 based. |
|
I can no longer build druntime or phobos unit tests with clang. Note, there is an issue with clang with this code, I'm working on a PR to fix this, but of course, don't want to submit without unittests running :) Error: Any ideas? |
|
That looks really strange. Looks like some mangling issue. Have you tried making clean builds of both the compiler and druntime? |
|
It works fine for me. Which version of Xcode, Clang and OS X are you using? |
|
OK, I figured it out. On my system, CC by default is I'm so not good at makefile-fu, so someone is going to have to fix this other than me. |
|
Nevermind. I had CC set in my environment. Not sure why, but I fixed it now. Pretend I didn't spew all that idiotic stuff ;) |
Note, this was also caused by my errant environment. So false alarm there too... |
|
You can also run |
|
Ok, cool. No worries 😃. |
|
BTW, Clang will give you a warning if you try to compile C files with |
haha, this is exactly why I noticed it. In fact, my first attempt to "fix" that warning was to rename to cpp :) Of course, one becomes numb to these types of warnings, especially when one doesn't work with the code in question. We have warnings all over the place in dmd for example :) |
Haha 😃.
Very true. |
Second try at implementing native TLS on OS X. See #1461 for reference.