File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2828
2929# # Check for Linux or OSX. "These days" we support x86_64 on Linux and arm64 on macOS.
3030# # At CRAN or R-universe we encounter nothing else.
31+ # # Use Sys.info() to be cross-compilation safe.
3132: ${R_HOME=$(R RHOME)}
32- sysname=$( ${R_HOME} /bin/Rscript -e ' cat(Sys.info()["sysname"])' )
33+ sysname=$( ${R_HOME} /bin/Rscript -e ' cat(Sys.info()[["sysname"]])' )
34+ arch=$( ${R_HOME} /bin/Rscript -e ' cat(Sys.info()[["machine"]])' )
3335osname=$( ${R_HOME} /bin/Rscript -e ' cat(R.version$os)' )
3436if [ ${sysname} = " Linux" ] & [ ${osname} != " linux-musl" ]; then
3537 platform=" linux"
4345 cp -ax src/Makevars.no_blp src/Makevars
4446 exit 0
4547fi
48+ echo " Seeing ${sysname} ${arch} ${osname} ${platform} "
4649
4750# # Populate Makevars
48- # # Use Sys.info() to be cross-compilation safe, r-universe still has x86_86 macos
49- arch=$( ${R_HOME} /bin/Rscript -e ' cat(Sys.info()["machine"])' )
5051if [ " ${arch} " = " x86_64" ] && [ " ${platform} " = " linux" ]; then
5152 echo " Setting up compilation for a ${platform} ${arch} system"
5253 sed -e" s/@have_blp@/yes/" src/Makevars.in > src/Makevars
You can’t perform that action at this time.
0 commit comments