Skip to content

Commit

Permalink
Modify linux makefile to echo build mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
theComputeKid committed Dec 31, 2021
1 parent 623d97b commit 3fea0b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion +utils/make-mex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ CXXFLAGS="-x cu -std=c++17 -Xcompiler -fPIC"
CXXDEBUGFLAGS="-g -G $CXXFLAGS"
CXXRELEASEFLAGS="-O2 $CXXFLAGS -Xcompiler -O2"

if [ "$1" = "debug" ]; then
if [[ "$1" == "debug" ]]; then
echo Building in debug
$NVCC $CXXDEBUGFLAGS $DEFINES $INC pentasolver.cpp -o $OUT $LDFLAGS
else
echo Building in release
$NVCC $CXXRELEASEFLAGS $DEFINES $INC pentasolver.cpp -o $OUT $LDFLAGS
fi

0 comments on commit 3fea0b9

Please sign in to comment.