File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3324,7 +3324,7 @@ if test x"${SYSKERNEL}" = x"Darwin"; then
33243324 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : checking whether R CMD SHLIB can compile OpenMP programs using '-Xclang -fopenmp'" >&5
33253325printf %s " checking whether R CMD SHLIB can compile OpenMP programs using '-Xclang -fopenmp'... " >&6 ; }
33263326
3327- PKG_CXXFLAGS= -Xclang -fopenmp PKG_LIBS=" ${PKG_LIBS} -lomp" " ${R_HOME} /bin/R" CMD SHLIB -fopenmp test-omp.cpp > /dev/null 2>&1
3327+ CPPFLAGS= " ${CPPFLAGS} -Xclang -fopenmp" PKG_LIBS=" ${PKG_LIBS} -lomp" " ${R_HOME} /bin/R" CMD SHLIB -fopenmp test-omp.cpp > /dev/null 2>&1
33283328 if test x" $? " = x" 0" ; then
33293329 { printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: yes" >&5
33303330printf " %s\n" " yes" >&6 ; }
Original file line number Diff line number Diff line change @@ -114,7 +114,8 @@ if test x"${SYSKERNEL}" = x"Darwin"; then
114114 if test x"${can_use_openmp}" = x"no"; then
115115 AC_MSG_CHECKING ( [ whether R CMD SHLIB can compile OpenMP programs using '-Xclang -fopenmp'] )
116116
117- PKG_CXXFLAGS=-Xclang -fopenmp PKG_LIBS="${PKG_LIBS} -lomp" "${R_HOME}/bin/R" CMD SHLIB -fopenmp test-omp.cpp >/dev/null 2>&1
117+ # >/dev/null 2>&1
118+ PKG_CXXFLAGS="${PKG_CXXFLAGS} -Xclang -fopenmp" PKG_LIBS="${PKG_LIBS} -lomp" "${R_HOME}/bin/R" CMD SHLIB test-omp.cpp
118119 if test x"$?" = x"0"; then
119120 AC_MSG_RESULT ( [ yes] )
120121 openmp_already_works="yes"
You can’t perform that action at this time.
0 commit comments