[PATCH] D30136: [compiler-rt][builtins][WIP] Add _IsOSVersionAtLeast, to be used by ObjC's @available

Alex Lorenz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 28 10:19:50 PST 2017


arphaman added a comment.

In https://reviews.llvm.org/D30136#686141, @erik.pilkington wrote:

> @arphaman: As far as adding a test to test/builtins/Unit, I would like to but I don't know how these tests are run. I went through my trouble with it in the description above. Do you know how these tests are run?


It looks like the builtins didn't have cmake test support, but I've worked out a way to add it. I've attached a diff with a sample test that you can use:

F3120130: test_availability.diff <https://reviews.llvm.org/F3120130>

I tested it on macOS only, so I'm not sure if the code is 100% correct.


https://reviews.llvm.org/D30136





More information about the llvm-commits mailing list