assignUser commented on code in PR #37684:
URL: https://github.com/apache/arrow/pull/37684#discussion_r1343273672


##########
r/tools/nixlibs.R:
##########
@@ -168,17 +178,22 @@ select_binary <- function(os = 
tolower(Sys.info()[["sysname"]]),
   } else {
     # No binary available for arch
     cat(sprintf("*** Building on %s %s\n", os, arch))
-    NULL
+    binary <- NULL
   }
+  return(binary)
 }
 
 # This tests that curl and OpenSSL are present (bc we can include their 
headers)
 # and it checks for other versions/features and raises errors that we grep for
-test_for_curl_and_openssl <- "
-#include <ciso646>
+test_for_curl_and_openssl <-
+  "#include <ciso646>
+#ifndef __APPLE__
 #ifdef _LIBCPP_VERSION
 #error Using libc++
 #endif
+#elif __GLIBCXX__
+#error Using libstdc++

Review Comment:
   I looked into it and it is theoretically possible but very unlikely with no 
support from apple and brew also defaulting to libc++, so I removed it. (and 
that's only the combination I would assume that it would fail but did not test 
it)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to