Skip to content

Commit ab7a8a9

Browse files
committed
[rust] 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 4c65e50 commit ab7a8a9

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
@@ -1353,7 +1353,7 @@ namespace fs {
13531353
/// implementation.
13541354
std::error_code copy_file(const Twine &From, const Twine &To) {
13551355
uint32_t Flag = COPYFILE_DATA;
1356-
#if __has_builtin(__builtin_available) && defined(COPYFILE_CLONE)
1356+
#if 0 && __has_builtin(__builtin_available) && defined(COPYFILE_CLONE)
13571357
if (__builtin_available(macos 10.12, *)) {
13581358
bool IsSymlink;
13591359
if (std::error_code Error = is_symlink_file(From, IsSymlink))

0 commit comments

Comments
 (0)