Skip to content

Commit 7a1faa0

Browse files
committed
build runtime and util separately
When building, run configure from the root folder.
1 parent b229234 commit 7a1faa0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

darshan-test/automated/build-darshan.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ mkdir -p $DARSHAN_LOG_PATH
2323

2424
# configure and build darshan-runtime (if not requested to skip)
2525
if [ ! -v DARSHAN_RUNTIME_SKIP ]; then
26-
mkdir -p $build_dir/darshan-runtime && cd $build_dir/darshan-runtime
26+
mkdir -p $build_dir && cd $build_dir
2727
if [ -z "${DARSHAN_RUNTIME_CONFIG_ARGS}" ]; then
2828
DARSHAN_RUNTIME_CONFIG_ARGS="--with-jobid-env=NONE --enable-apmpi-mod"
2929
fi
30-
$darshan_root_dir/darshan-runtime/configure $DARSHAN_RUNTIME_CONFIG_ARGS --with-log-path=$DARSHAN_LOG_PATH --prefix=$DARSHAN_INSTALL_PREFIX
31-
make install
30+
$darshan_root_dir/configure --disable-darshan-util $DARSHAN_RUNTIME_CONFIG_ARGS --with-log-path=$DARSHAN_LOG_PATH --prefix=$DARSHAN_INSTALL_PREFIX
31+
make -j8 install
3232
fi
3333

3434
# configure and build darshan-util
35-
mkdir -p $build_dir/darshan-util && cd $build_dir/darshan-util
35+
mkdir -p $build_dir && cd $build_dir
3636
if [ -z "${DARSHAN_UTIL_CONFIG_ARGS}" ]; then
3737
DARSHAN_UTIL_CONFIG_ARGS="--enable-apmpi-mod --enable-apxc-mod"
3838
fi
39-
$darshan_root_dir/darshan-util/configure $DARSHAN_UTIL_CONFIG_ARGS --prefix=$DARSHAN_INSTALL_PREFIX
40-
make install
39+
$darshan_root_dir/configure --disable-darshan-runtime $DARSHAN_UTIL_CONFIG_ARGS --prefix=$DARSHAN_INSTALL_PREFIX
40+
make -j8 install

0 commit comments

Comments
 (0)