mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 22:25:48 -04:00
script updates from conda build
This commit is contained in:
parent
4c97deac51
commit
0515bcebbc
2 changed files with 17 additions and 2 deletions
|
|
@ -26,6 +26,11 @@ if [ -z "$(command -v patch)" ]; then
|
|||
exit 1
|
||||
fi
|
||||
UNAME_S=$(uname -s)
|
||||
if [ ! -z "${CONDA_TOOLCHAIN_HOST}" ]; then
|
||||
arch=$(echo $CONDA_TOOLCHAIN_HOST | cut -d - -f 1)
|
||||
else
|
||||
arch=$(uname -m)
|
||||
fi
|
||||
if [[ ${UNAME_S} == Linux ]]; then
|
||||
CPU_FLAGS=$(cat /proc/cpuinfo | grep flags |tail -n 1)
|
||||
CPU_FLAGS_2=$(cat /proc/cpuinfo | grep flags |tail -n 1)
|
||||
|
|
@ -245,7 +250,9 @@ cd ../..
|
|||
echo ln -sf simint.l${SIMINT_MAXAM}_p${PERMUTE_SLOW}_d${DERIV}.install simint_install
|
||||
ln -sf simint.l${SIMINT_MAXAM}_p${PERMUTE_SLOW}_d${DERIV}.install simint_install
|
||||
cd simint_install/lib
|
||||
strip --strip-debug libsimint.a
|
||||
if [[ "$arch" == "x86_64" ]]; then
|
||||
strip --strip-debug libsimint.a
|
||||
fi
|
||||
ln -sf libsimint.a libnwc_simint.a
|
||||
export SIMINT_HOME=${SRC_HOME}/simint.l${SIMINT_MAXAM}_p${PERMUTE_SLOW}_d${DERIV}.install
|
||||
echo 'SIMINT library built with maximum angular momentum='${SIMINT_MAXAM}
|
||||
|
|
|
|||
|
|
@ -219,7 +219,15 @@ fi
|
|||
$CMAKE --install _build
|
||||
|
||||
cd ..
|
||||
|
||||
if [ ! -z "${CONDA_TOOLCHAIN_HOST}" ]; then
|
||||
arch=$(echo $CONDA_TOOLCHAIN_HOST | cut -d - -f 1)
|
||||
else
|
||||
arch=$(uname -m)
|
||||
fi
|
||||
if [[ $(uname -s) == "Linux" ]]; then
|
||||
strip --strip-debug ../lib/libtblite.a
|
||||
if [[ "$arch" == "x86_64" ]]; then
|
||||
strip --strip-debug ../lib/libtblite.a
|
||||
fi
|
||||
fi
|
||||
ln -sf ../lib/libtblite.a ../lib/libnwc_tblite.a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue