Skip to content

Commit

Permalink
maybe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Oct 10, 2024
1 parent 52aad17 commit f1963f9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tools/build_absl.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@

# https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Using-cmake

: ${R_HOME=`R RHOME`}
if test -z "${R_HOME}"; then
echo "could not determine R_HOME"
exit 1
fi

# Do our best to pass on the user MAKEFLAGS. This can result in much faster
# compilation of the vendored library.
MAKEFLAGS=`Rscript -e 'readRenviron("~/.R/Makevars"); cat(Sys.getenv("MAKEFLAGS"))'`
MAKEFLAGS=`${R_HOME}/bin/Rscript -e 'readRenviron("~/.R/Makevars"); cat(Sys.getenv("MAKEFLAGS"))'`

if test -z "$MAKE"; then MAKE="`which make`"; fi
if ${MAKE} --version ; then
Expand All @@ -23,12 +29,6 @@ else
exit 1
fi

: ${R_HOME=`R RHOME`}
if test -z "${R_HOME}"; then
echo "could not determine R_HOME"
exit 1
fi

CC=`"${R_HOME}/bin/R" CMD config CC`
CXX="`${R_HOME}/bin/R CMD config CXX17` `${R_HOME}/bin/R CMD config CXX17STD`"
CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
Expand Down

0 comments on commit f1963f9

Please sign in to comment.