karldw commented on a change in pull request #11001:
URL: https://github.com/apache/arrow/pull/11001#discussion_r698750855



##########
File path: r/tools/nixlibs.R
##########
@@ -320,33 +300,54 @@ build_libarrow <- function(src_dir, dst_dir) {
     BUILD_DIR = build_dir,
     DEST_DIR = dst_dir,
     CMAKE = cmake,
+    # EXTRA_CMAKE_FLAGS will often be "", but it's convenient later to have it 
defined

Review comment:
       Later in the code I have:
   
https://github.com/apache/arrow/blob/98b5601f94ff0f0caf240c6e1b914d4e8e49f98e/r/tools/nixlibs.R#L447-L452
   
   If we don't add `EXTRA_CMAKE_FLAGS` to the vector, that section could 
instead be
   ```r
       # The syntax to turn off XSIMD is different.
       # Pull existing value of EXTRA_CMAKE_FLAGS first (must be defined)
       "EXTRA_CMAKE_FLAGS" = paste(
         Sys.getenv("EXTRA_CMAKE_FLAGS"),
         "-DARROW_SIMD_LEVEL=NONE -DARROW_RUNTIME_SIMD_LEVEL=NONE"
       )
   ```
   
   I did it the first way to have the `EXTRA_CMAKE_FLAGS` collected at the same 
time as the other existing build flags, but if you think the second way is 
cleaner, I'm happy to change 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