Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH Allow arbitrary CMake config options in build.sh (#8996)
This PR adds a feature to the root `build.sh` script which allows it to consume any arbitrary CMake args and add them to the CMake configuration step. Some local testing: `--cmake-args` ``` $ bash build.sh -v -g --cmake-args='improper format' libcudf Invalid formatting for --cmake-args, see --help: --cmake-args=improper format $ bash build.sh -v -g --cmake-args="improper format" libcudf Invalid formatting for --cmake-args, see --help: --cmake-args=improper format $ bash build.sh -v -g --cmake-args= libcudf Invalid formatting for --cmake-args, see --help: --cmake-args= # This is just echoing the additional args that will be added to cmake then exiting before build $ bash build.sh -v -g --cmake-args=\"-DEXAMPLE_ARG -DEXAMPLE_ARG=/path/to/file -DEXAMPLE_ARG=\"string argument\"\" libcudf -DEXAMPLE_ARG -DEXAMPLE_ARG=/path/to/file -DEXAMPLE_ARG="string argument" ``` New `--help` output ``` $ bash build.sh --help build.sh [clean] [libcudf] [cudf] [dask_cudf] [benchmarks] [tests] [libcudf_kafka] [cudf_kafka] [custreamz] [-v] [-g] [-n] [-h] [-l] [--cmake-args="<args>"] clean - remove all existing build artifacts and configuration (start over) libcudf - build the cudf C++ code only cudf - build the cudf Python package dask_cudf - build the dask_cudf Python package benchmarks - build benchmarks tests - build tests libcudf_kafka - build the libcudf_kafka C++ code only cudf_kafka - build the cudf_kafka Python package custreamz - build the custreamz Python package -v - verbose build mode -g - build for debug -n - no install step -l - build legacy tests --allgpuarch - build for all supported GPU architectures --disable_nvtx - disable inserting NVTX profiling ranges --show_depr_warn - show cmake deprecation warnings --ptds - enable per-thread default stream --cmake-args=\"<args>\" - pass arbitrary list of CMake configuration options (escape all quotes in argument) -h | --h[elp] - print this text default action (no args) is to build and install 'libcudf' then 'cudf' ``` Authors: - Dillon Cullinan (https://github.com/dillon-cullinan) Approvers: - Robert Maynard (https://github.com/robertmaynard) - Ray Douglass (https://github.com/raydouglass) URL: #8996
- Loading branch information