Back-deploying to macOS 10.5 is not supported anymore, so I don't think
anybody's really using that code path. Removing the conditional logic
allows for a small code simplification.
Details
- Reviewers
benlangmuir
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
llvm/lib/Support/LockFileManager.cpp | ||
---|---|---|
38 | gethostuuid is not available on all Apple platforms, so we should still check for macOS specifically. It looks like some other code is using this pattern to check the platform: #if defined(__APPLE__) #include <TargetConditionals.h> #if TARGET_OS_OSX ... |
llvm/lib/Support/LockFileManager.cpp | ||
---|---|---|
38 | Smaller change would be to drop the __MAC_OS_X_VERSION_MIN_REQUIRED > 1050 check (avoids adding an extra include)... but in either case this doesn't buy us much, since we still need some sort of USE_OSX_GETHOSTUUID flag. If the goal is to remove use of libc++'s __MAC_OS_X_VERSION_MIN_REQUIRED, this could switch to the compiler-provided __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__... |
gethostuuid is not available on all Apple platforms, so we should still check for macOS specifically. It looks like some other code is using this pattern to check the platform: