Skip to content

Commit 8ae7be3

Browse files
committed
[rust] 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 10c7136 commit 8ae7be3

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
@@ -1443,7 +1443,7 @@ namespace fs {
14431443
/// implementation.
14441444
std::error_code copy_file(const Twine &From, const Twine &To) {
14451445
uint32_t Flag = COPYFILE_DATA;
1446-
#if __has_builtin(__builtin_available) && defined(COPYFILE_CLONE)
1446+
#if 0 && __has_builtin(__builtin_available) && defined(COPYFILE_CLONE)
14471447
if (__builtin_available(macos 10.12, *)) {
14481448
bool IsSymlink;
14491449
if (std::error_code Error = is_symlink_file(From, IsSymlink))

0 commit comments

Comments
 (0)