Commit 1be504c1 authored by Jussi Lindgren's avatar Jussi Lindgren

Build: Tweaks to get Designer make a core dump

parent 6171d7ce
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
#export OV_PATH_LIB="$OV_PATH_ROOT/lib" #export OV_PATH_LIB="$OV_PATH_ROOT/lib"
#export OV_PATH_DATA="$OV_PATH_ROOT/share/openvibe" #export OV_PATH_DATA="$OV_PATH_ROOT/share/openvibe"
# Dump core...
ulimit -c unlimited
# Tries to locate matlab executable from $PATH, and set the library path to the corresponding matlab libs. # Tries to locate matlab executable from $PATH, and set the library path to the corresponding matlab libs.
if [ "`which matlab`" != "" ] ; then if [ "`which matlab`" != "" ] ; then
MATLAB_ROOT=`matlab -e | grep "^MATLAB=" | sed -e "s/^MATLAB=//"` MATLAB_ROOT=`matlab -e | grep "^MATLAB=" | sed -e "s/^MATLAB=//"`
...@@ -51,7 +54,7 @@ fi ...@@ -51,7 +54,7 @@ fi
ret_code=0 ret_code=0
if [ $ov_run_bg == 0 ]; then if [ $ov_run_bg == 0 ]; then
eval $ov_debugger "$LOCAL_BIN_PATH/@OV_CMD_EXECUTABLE@" @OV_CMD_ARGS@ "$@" eval $ov_debugger "$LOCAL_BIN_PATH/@OV_CMD_EXECUTABLE@" --sync @OV_CMD_ARGS@ "$@"
ret_code=$? ret_code=$?
else else
$ov_debugger "$LOCAL_BIN_PATH/@OV_CMD_EXECUTABLE@" @OV_CMD_ARGS@ "$@" & $ov_debugger "$LOCAL_BIN_PATH/@OV_CMD_EXECUTABLE@" @OV_CMD_ARGS@ "$@" &
......
#!/bin/bash #!/bin/bash
ov_build_type=Release ov_build_type=RelWithDebInfo
if [ "$1" == "--debug" ]; then if [ "$1" == "--debug" ]; then
ov_build_type=Debug ov_build_type=Debug
shift shift
......
...@@ -268,12 +268,12 @@ message(STATUS " INFO : submit(...) returned '${res}'") ...@@ -268,12 +268,12 @@ message(STATUS " INFO : submit(...) returned '${res}'")
message(" -- Finished ${MODEL} - ${CTEST_BUILD_NAME} --") message(" -- Finished ${MODEL} - ${CTEST_BUILD_NAME} --")
IF(${MODEL} MATCHES Nightly) # IF(${MODEL} MATCHES Nightly)
message(" -- clean ${MODEL} - ${CTEST_BUILD_NAME} --") # message(" -- clean ${MODEL} - ${CTEST_BUILD_NAME} --")
ctest_empty_binary_directory(${CTEST_SOURCE_DIRECTORY}) # ctest_empty_binary_directory(${CTEST_SOURCE_DIRECTORY})
ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY}) # ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY})
exec_program("rm" ARGS "-rf ${CTEST_SOURCE_DIRECTORY}" OUTPUT_VARIABLE "cleanScript") # exec_program("rm" ARGS "-rf ${CTEST_SOURCE_DIRECTORY}" OUTPUT_VARIABLE "cleanScript")
ENDIF(${MODEL} MATCHES Nightly) # ENDIF(${MODEL} MATCHES Nightly)
## unlock if continous build ## unlock if continous build
IF(${MODEL} MATCHES Continuous) IF(${MODEL} MATCHES Continuous)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment