@@ -19,7 +19,7 @@ ARGS=$*
19
19
REPODIR=$( cd $( dirname $0 ) ; pwd)
20
20
21
21
VALIDTARGETS=" clean libcuml cuml cpp-mgtests prims bench prims-bench cppdocs pydocs"
22
- VALIDFLAGS=" -v -g -n --allgpuarch --singlegpu --nolibcumltest --nvtx --show_depr_warn --codecov --ccache -h --help "
22
+ VALIDFLAGS=" -v -g -n --allgpuarch --singlegpu --nolibcumltest --nvtx --show_depr_warn --codecov --ccache --configure-only - h --help "
23
23
VALIDARGS=" ${VALIDTARGETS} ${VALIDFLAGS} "
24
24
HELP=" $0 [<target> ...] [<flag> ...]
25
25
where <target> is:
@@ -46,6 +46,7 @@ HELP="$0 [<target> ...] [<flag> ...]
46
46
--codecov - Enable code coverage support by compiling with Cython linetracing
47
47
and profiling enabled (WARNING: Impacts performance)
48
48
--ccache - Use ccache to cache previous compilations
49
+ --configure-only - Invoke CMake without actually building
49
50
--nocloneraft - CMake will clone RAFT even if it is in the environment, use this flag to disable that behavior
50
51
--static-treelite - Force CMake to use the Treelite static libs, cloning and building them if necessary
51
52
@@ -133,6 +134,7 @@ LONG_ARGUMENT_LIST=(
133
134
" ccache"
134
135
" nolibcumltest"
135
136
" nocloneraft"
137
+ " configure-only"
136
138
)
137
139
138
140
# Short arguments
@@ -260,7 +262,7 @@ if completeBuild || hasArg libcuml || hasArg prims || hasArg bench || hasArg pri
260
262
fi
261
263
262
264
# If `./build.sh cuml` is called, don't build C/C++ components
263
- if completeBuild || hasArg libcuml || hasArg prims || hasArg bench || hasArg cpp-mgtests; then
265
+ if ( ! hasArg --configure-only) && ( completeBuild || hasArg libcuml || hasArg prims || hasArg bench || hasArg cpp-mgtests) ; then
264
266
cd ${LIBCUML_BUILD_DIR}
265
267
if [ -n " ${INSTALL_TARGET} " ]; then
266
268
cmake --build ${LIBCUML_BUILD_DIR} -j${PARALLEL_LEVEL} ${build_args} --target ${INSTALL_TARGET} ${VERBOSE_FLAG}
@@ -269,14 +271,14 @@ if completeBuild || hasArg libcuml || hasArg prims || hasArg bench || hasArg cpp
269
271
fi
270
272
fi
271
273
272
- if hasArg cppdocs; then
274
+ if ( ! hasArg --configure-only) && hasArg cppdocs; then
273
275
cd ${LIBCUML_BUILD_DIR}
274
276
cmake --build ${LIBCUML_BUILD_DIR} --target docs_cuml
275
277
fi
276
278
277
279
278
280
# Build and (optionally) install the cuml Python package
279
- if completeBuild || hasArg cuml || hasArg pydocs; then
281
+ if ( ! hasArg --configure-only) && ( completeBuild || hasArg cuml || hasArg pydocs) ; then
280
282
# Append `-DFIND_CUML_CPP=ON` to CUML_EXTRA_CMAKE_ARGS unless a user specified the option.
281
283
SKBUILD_EXTRA_CMAKE_ARGS=" ${CUML_EXTRA_CMAKE_ARGS} "
282
284
if [[ " ${CUML_EXTRA_CMAKE_ARGS} " != * " DFIND_CUML_CPP" * ]]; then
0 commit comments