diff --git a/+utils/make-mex.sh b/+utils/make-mex.sh index 9752b97..da4685f 100644 --- a/+utils/make-mex.sh +++ b/+utils/make-mex.sh @@ -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