Skip to content

Commit 15a98c3

Browse files
committed
Comment out __builtin_available() use (rust-lang#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 060818c commit 15a98c3

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
@@ -1342,7 +1342,7 @@ namespace fs {
13421342
/// implementation.
13431343
std::error_code copy_file(const Twine &From, const Twine &To) {
13441344
uint32_t Flag = COPYFILE_DATA;
1345-
#if __has_builtin(__builtin_available) && defined(COPYFILE_CLONE)
1345+
#if 0 && __has_builtin(__builtin_available) && defined(COPYFILE_CLONE)
13461346
if (__builtin_available(macos 10.12, *)) {
13471347
bool IsSymlink;
13481348
if (std::error_code Error = is_symlink_file(From, IsSymlink))

0 commit comments

Comments
 (0)