Skip to content

Commit

Permalink
Add build/latest.
Browse files Browse the repository at this point in the history
Make it so builds outside of devcontainer build to build/local.

Also, always make it so the most recent build is symlinked to build/latest.
  • Loading branch information
jrhemstad committed Jul 7, 2023
1 parent 4b40fd3 commit d07bda9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ci/build_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,16 @@ readonly GPU_ARCHS=$(echo $3 | tr ' ,' ';')

readonly PARALLEL_LEVEL=${PARALLEL_LEVEL:=$(nproc)}

BUILD_DIR=${BUILD_DIR:-../build/${DEVCONTAINER_NAME:-}}
if [ -z ${DEVCONTAINER_NAME+x} ]; then
BUILD_DIR=../build/local
else
BUILD_DIR=../build/${DEVCONTAINER_NAME}
fi

# The most recent build will always be symlinked to cccl/build/latest
mkdir -p $BUILD_DIR
rm -f ../build/latest
ln -sf $BUILD_DIR ../build/latest

COMMON_CMAKE_OPTIONS="
-DCMAKE_BUILD_TYPE=Release \
Expand Down

0 comments on commit d07bda9

Please sign in to comment.