Skip to content

Commit 1c3ec03

Browse files
committed
Comment out __builtin_available() use (#21)
__builtin_available() pulls in __isOSVersionAtLeast() from compiler-rt. Comment it out so we don't have to figure out how to pull in this symbol...
1 parent 343c8b1 commit 1c3ec03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/Unix/Path.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ namespace fs {
12221222
/// implementation.
12231223
std::error_code copy_file(const Twine &From, const Twine &To) {
12241224
uint32_t Flag = COPYFILE_DATA;
1225-
#if __has_builtin(__builtin_available) && defined(COPYFILE_CLONE)
1225+
#if 0 && __has_builtin(__builtin_available) && defined(COPYFILE_CLONE)
12261226
if (__builtin_available(macos 10.12, *)) {
12271227
bool IsSymlink;
12281228
if (std::error_code Error = is_symlink_file(From, IsSymlink))

0 commit comments

Comments
 (0)