Skip to content

Commit

Permalink
[rust] Comment out __builtin_available() use (#21)
Browse files Browse the repository at this point in the history
__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...
  • Loading branch information
nikic committed Feb 13, 2024
1 parent fc51bc6 commit bcce8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Support/Unix/Path.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,7 @@ namespace fs {
std::error_code copy_file(const Twine &From, const Twine &To) {
std::string FromS = From.str();
std::string ToS = To.str();
#if __has_builtin(__builtin_available)
#if 0 && __has_builtin(__builtin_available)
if (__builtin_available(macos 10.12, *)) {
// Optimistically try to use clonefile() and handle errors, rather than
// calling stat() to see if it'll work.
Expand Down

0 comments on commit bcce8fa

Please sign in to comment.