Skip to content

Commit 1d9c7a9

Browse files
author
Diptorup Deb
committed
Update the dbg_build.sh
1 parent b1077f0 commit 1d9c7a9

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

libsyclinterface/dbg_build.sh

+8-7
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,31 @@
22
set +xe
33
rm -rf build
44
mkdir build
5-
pushd build
5+
pushd build || exit 1
66

7-
INSTALL_PREFIX=`pwd`/../install
7+
INSTALL_PREFIX=$(pwd)/../install
88
rm -rf ${INSTALL_PREFIX}
99

1010
cmake \
1111
-DCMAKE_BUILD_TYPE=Debug \
1212
-DCMAKE_C_COMPILER=icx \
13-
-DCMAKE_CXX_COMPILER=dpcpp \
13+
-DCMAKE_CXX_COMPILER=icpx \
14+
-DCMAKE_CXX_FLAGS=-fsycl \
1415
-DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
1516
-DCMAKE_PREFIX_PATH=${INSTALL_PREFIX} \
1617
-DDPCTL_ENABLE_L0_PROGRAM_CREATION=ON \
1718
-DDPCTL_BUILD_CAPI_TESTS=ON \
18-
-DDPCTL_GENERATE_COVERAGE=ON \
1919
..
2020

2121
make V=1 -n -j 4 && make check && make install
2222

23-
# Turn on to generate coverage report html files
24-
make lcov-genhtml
23+
# Turn on to generate coverage report html files reconfigure with
24+
# -DDPCTL_GENERATE_COVERAGE=ON and then
25+
# make lcov-genhtml
2526

2627
# For more verbose tests use:
2728
# cd tests
2829
# ctest -V --progress --output-on-failure -j 4
2930
# cd ..
3031

31-
popd
32+
popd || exit 1

0 commit comments

Comments
 (0)